forked from kongfp/TP_Admin
31
0
Fork 1

修改项目主目录

pull/2/head
lishuang 2 years ago
parent 188378dfd3
commit 722179e2ef

@ -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``. 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 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() application = get_asgi_application()

@ -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. Generated by 'django-admin startproject' using Django 3.2.19.
@ -55,7 +55,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
] ]
ROOT_URLCONF = 'TP.urls' ROOT_URLCONF = 'TP_Admin.urls'
TEMPLATES = [ TEMPLATES = [
{ {
@ -73,7 +73,7 @@ TEMPLATES = [
}, },
] ]
WSGI_APPLICATION = 'TP.wsgi.application' WSGI_APPLICATION = 'TP_Admin.wsgi.application'
# Database # Database

@ -1,4 +1,4 @@
"""TP URL Configuration """TP_Admin URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see: The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/ https://docs.djangoproject.com/en/3.2/topics/http/urls/

@ -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``. 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 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() application = get_wsgi_application()

@ -1,4 +1,4 @@
"""TP URL Configuration """TP_Admin URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see: The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/ https://docs.djangoproject.com/en/3.2/topics/http/urls/

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

Loading…
Cancel
Save