diff --git a/TP_Admin/__init__.py b/TP_Api/__init__.py similarity index 100% rename from TP_Admin/__init__.py rename to TP_Api/__init__.py diff --git a/TP_Admin/asgi.py b/TP_Api/asgi.py similarity index 73% rename from TP_Admin/asgi.py rename to TP_Api/asgi.py index 499eb58..4d2c0ee 100644 --- a/TP_Admin/asgi.py +++ b/TP_Api/asgi.py @@ -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``. @@ -11,6 +11,6 @@ import os 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() diff --git a/TP_Admin/settings.py b/TP_Api/settings.py similarity index 97% rename from TP_Admin/settings.py rename to TP_Api/settings.py index 1a0c22d..5a2a2af 100644 --- a/TP_Admin/settings.py +++ b/TP_Api/settings.py @@ -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. @@ -55,7 +55,7 @@ MIDDLEWARE = [ 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] -ROOT_URLCONF = 'TP_Admin.urls' +ROOT_URLCONF = 'TP_Api.urls' TEMPLATES = [ { @@ -73,7 +73,7 @@ TEMPLATES = [ }, ] -WSGI_APPLICATION = 'TP_Admin.wsgi.application' +WSGI_APPLICATION = 'TP_Api.wsgi.application' # Database diff --git a/TP_Admin/urls.py b/TP_Api/urls.py similarity index 97% rename from TP_Admin/urls.py rename to TP_Api/urls.py index 72f91c0..6c2d041 100644 --- a/TP_Admin/urls.py +++ b/TP_Api/urls.py @@ -1,4 +1,4 @@ -"""TP_Admin URL Configuration +"""TP_Api 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_Admin/wsgi.py b/TP_Api/wsgi.py similarity index 73% rename from TP_Admin/wsgi.py rename to TP_Api/wsgi.py index 1ea9980..6ce5333 100644 --- a/TP_Admin/wsgi.py +++ b/TP_Api/wsgi.py @@ -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``. @@ -11,6 +11,6 @@ import os 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() diff --git a/app/migrations/0003_auto_20230529_1446.py b/app/migrations/0003_auto_20230529_1446.py index 714d803..91603ed 100644 --- a/app/migrations/0003_auto_20230529_1446.py +++ b/app/migrations/0003_auto_20230529_1446.py @@ -11,7 +11,7 @@ class Migration(migrations.Migration): operations = [ migrations.CreateModel( - name='TP', + name='TP_Api', fields=[ ('uid', models.AutoField(primary_key=True, serialize=False)), ('video_hash', models.CharField(max_length=50)), diff --git a/app/urls.py b/app/urls.py index 48dba61..2d77315 100644 --- a/app/urls.py +++ b/app/urls.py @@ -1,4 +1,4 @@ -"""TP_Admin URL Configuration +"""TP_Api 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/db.sqlite3 b/db.sqlite3 index ec86410..fa04171 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/manage.py b/manage.py index 706baf8..1a237fd 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_Admin.settings') + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TP_Api.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: