Rename main app to config

This commit is contained in:
keannu125 2023-03-21 20:54:44 +08:00
parent 990c786c62
commit 7a7c922963
6 changed files with 5 additions and 5 deletions

View file

@ -11,6 +11,6 @@ import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'infotech.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
application = get_asgi_application()

View file

@ -49,7 +49,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'infotech.urls'
ROOT_URLCONF = 'config.urls'
TEMPLATES = [
{
@ -67,7 +67,7 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'infotech.wsgi.application'
WSGI_APPLICATION = 'config.wsgi.application'
# Database

View file

@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'infotech.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
application = get_wsgi_application()

View file

@ -6,7 +6,7 @@ import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'infotech.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc: