From 722179e2ef3e7d30e89b84e8bc87daf02ed72738 Mon Sep 17 00:00:00 2001 From: lishuang <573230334@qq.com> Date: Thu, 1 Jun 2023 15:44:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E4=B8=BB?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {TP => TP_Admin}/__init__.py | 0 {TP => TP_Admin}/asgi.py | 4 ++-- {TP => TP_Admin}/settings.py | 6 +++--- {TP => TP_Admin}/urls.py | 2 +- {TP => TP_Admin}/wsgi.py | 4 ++-- app/urls.py | 2 +- manage.py | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) rename {TP => TP_Admin}/__init__.py (100%) rename {TP => TP_Admin}/asgi.py (73%) rename {TP => TP_Admin}/settings.py (97%) rename {TP => TP_Admin}/urls.py (97%) rename {TP => TP_Admin}/wsgi.py (73%) diff --git a/TP/__init__.py b/TP_Admin/__init__.py similarity index 100% rename from TP/__init__.py rename to TP_Admin/__init__.py diff --git a/TP/asgi.py b/TP_Admin/asgi.py similarity index 73% rename from TP/asgi.py rename to TP_Admin/asgi.py index 06ba708..499eb58 100644 --- a/TP/asgi.py +++ b/TP_Admin/asgi.py @@ -1,5 +1,5 @@ """ -ASGI config for TP project. +ASGI config for TP_Admin project. It exposes the ASGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ import os from django.core.asgi import get_asgi_application -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TP.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TP_Admin.settings') application = get_asgi_application() diff --git a/TP/settings.py b/TP_Admin/settings.py similarity index 97% rename from TP/settings.py rename to TP_Admin/settings.py index 4d10e52..fa826fc 100644 --- a/TP/settings.py +++ b/TP_Admin/settings.py @@ -1,5 +1,5 @@ """ -Django settings for TP project. +Django settings for TP_Admin project. Generated by 'django-admin startproject' using Django 3.2.19. @@ -55,7 +55,7 @@ MIDDLEWARE = [ 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] -ROOT_URLCONF = 'TP.urls' +ROOT_URLCONF = 'TP_Admin.urls' TEMPLATES = [ { @@ -73,7 +73,7 @@ TEMPLATES = [ }, ] -WSGI_APPLICATION = 'TP.wsgi.application' +WSGI_APPLICATION = 'TP_Admin.wsgi.application' # Database diff --git a/TP/urls.py b/TP_Admin/urls.py similarity index 97% rename from TP/urls.py rename to TP_Admin/urls.py index b68cd0b..72f91c0 100644 --- a/TP/urls.py +++ b/TP_Admin/urls.py @@ -1,4 +1,4 @@ -"""TP URL Configuration +"""TP_Admin URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ diff --git a/TP/wsgi.py b/TP_Admin/wsgi.py similarity index 73% rename from TP/wsgi.py rename to TP_Admin/wsgi.py index 3e8ddc2..1ea9980 100644 --- a/TP/wsgi.py +++ b/TP_Admin/wsgi.py @@ -1,5 +1,5 @@ """ -WSGI config for TP project. +WSGI config for TP_Admin project. It exposes the WSGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ import os from django.core.wsgi import get_wsgi_application -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TP.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TP_Admin.settings') application = get_wsgi_application() diff --git a/app/urls.py b/app/urls.py index 9983c58..48dba61 100644 --- a/app/urls.py +++ b/app/urls.py @@ -1,4 +1,4 @@ -"""TP URL Configuration +"""TP_Admin URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ diff --git a/manage.py b/manage.py index 1b72f06..706baf8 100644 --- a/manage.py +++ b/manage.py @@ -6,7 +6,7 @@ import sys def main(): """Run administrative tasks.""" - os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TP.settings') + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TP_Admin.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: