From 7a7c9229639463ef32d85eb8688d70d917dd1941 Mon Sep 17 00:00:00 2001 From: keannu125 Date: Tue, 21 Mar 2023 20:54:44 +0800 Subject: [PATCH] Rename main app to config --- infotech/{infotech => config}/__init__.py | 0 infotech/{infotech => config}/asgi.py | 2 +- infotech/{infotech => config}/settings.py | 4 ++-- infotech/{infotech => config}/urls.py | 0 infotech/{infotech => config}/wsgi.py | 2 +- infotech/manage.py | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename infotech/{infotech => config}/__init__.py (100%) rename infotech/{infotech => config}/asgi.py (79%) rename infotech/{infotech => config}/settings.py (94%) rename infotech/{infotech => config}/urls.py (100%) rename infotech/{infotech => config}/wsgi.py (79%) diff --git a/infotech/infotech/__init__.py b/infotech/config/__init__.py similarity index 100% rename from infotech/infotech/__init__.py rename to infotech/config/__init__.py diff --git a/infotech/infotech/asgi.py b/infotech/config/asgi.py similarity index 79% rename from infotech/infotech/asgi.py rename to infotech/config/asgi.py index d652e36..59bd471 100644 --- a/infotech/infotech/asgi.py +++ b/infotech/config/asgi.py @@ -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() diff --git a/infotech/infotech/settings.py b/infotech/config/settings.py similarity index 94% rename from infotech/infotech/settings.py rename to infotech/config/settings.py index e8121d1..00a7314 100644 --- a/infotech/infotech/settings.py +++ b/infotech/config/settings.py @@ -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 diff --git a/infotech/infotech/urls.py b/infotech/config/urls.py similarity index 100% rename from infotech/infotech/urls.py rename to infotech/config/urls.py diff --git a/infotech/infotech/wsgi.py b/infotech/config/wsgi.py similarity index 79% rename from infotech/infotech/wsgi.py rename to infotech/config/wsgi.py index c04fbf2..c87985e 100644 --- a/infotech/infotech/wsgi.py +++ b/infotech/config/wsgi.py @@ -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() diff --git a/infotech/manage.py b/infotech/manage.py index 4664a0a..192aaab 100644 --- a/infotech/manage.py +++ b/infotech/manage.py @@ -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: