forked from kongfp/TP_Admin
31
0
Fork 1

修改项目主目录

pull/2/head
lishuang 2 years ago
parent 5c4595a246
commit d871de2c76

@ -1,5 +1,5 @@
""" """
ASGI config for TP_Admin project. ASGI config for TP_Api 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_Admin.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TP_Api.settings')
application = get_asgi_application() application = get_asgi_application()

@ -1,5 +1,5 @@
""" """
Django settings for TP_Admin project. Django settings for TP_Api 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_Admin.urls' ROOT_URLCONF = 'TP_Api.urls'
TEMPLATES = [ TEMPLATES = [
{ {
@ -73,7 +73,7 @@ TEMPLATES = [
}, },
] ]
WSGI_APPLICATION = 'TP_Admin.wsgi.application' WSGI_APPLICATION = 'TP_Api.wsgi.application'
# Database # Database

@ -1,4 +1,4 @@
"""TP_Admin URL Configuration """TP_Api 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_Admin project. WSGI config for TP_Api 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_Admin.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TP_Api.settings')
application = get_wsgi_application() application = get_wsgi_application()

@ -11,7 +11,7 @@ class Migration(migrations.Migration):
operations = [ operations = [
migrations.CreateModel( migrations.CreateModel(
name='TP', name='TP_Api',
fields=[ fields=[
('uid', models.AutoField(primary_key=True, serialize=False)), ('uid', models.AutoField(primary_key=True, serialize=False)),
('video_hash', models.CharField(max_length=50)), ('video_hash', models.CharField(max_length=50)),

@ -1,4 +1,4 @@
"""TP_Admin URL Configuration """TP_Api 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/

Binary file not shown.

@ -6,7 +6,7 @@ import sys
def main(): def main():
"""Run administrative tasks.""" """Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TP_Admin.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TP_Api.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