From 7f56dc2dadab75fd2fab6914b6f7d3f38e1a9e15 Mon Sep 17 00:00:00 2001 From: lishuang <573230334@qq.com> Date: Tue, 30 May 2023 14:07:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9app=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E4=B8=BAapp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TP_PROJECT/TP/settings.py | 2 +- TP_PROJECT/TP/urls.py | 2 +- TP_PROJECT/{app01 => app}/__init__.py | 0 TP_PROJECT/{app01 => app}/admin.py | 0 TP_PROJECT/{app01 => app}/apps.py | 2 +- .../{app01 => app}/migrations/0001_initial.py | 0 .../migrations/0002_auto_20230526_1003.py | 2 +- .../migrations/0003_auto_20230529_1446.py | 2 +- .../{app01 => app}/migrations/__init__.py | 0 TP_PROJECT/{app01 => app}/models.py | 0 TP_PROJECT/{app01 => app}/serializers.py | 2 +- TP_PROJECT/{app01 => app}/tests.py | 0 TP_PROJECT/{app01 => app}/urls.py | 2 +- TP_PROJECT/{app01 => app}/views.py | 4 ++-- TP_PROJECT/db.sqlite3 | Bin 139264 -> 143360 bytes 15 files changed, 9 insertions(+), 9 deletions(-) rename TP_PROJECT/{app01 => app}/__init__.py (100%) rename TP_PROJECT/{app01 => app}/admin.py (100%) rename TP_PROJECT/{app01 => app}/apps.py (86%) rename TP_PROJECT/{app01 => app}/migrations/0001_initial.py (100%) rename TP_PROJECT/{app01 => app}/migrations/0002_auto_20230526_1003.py (93%) rename TP_PROJECT/{app01 => app}/migrations/0003_auto_20230529_1446.py (96%) rename TP_PROJECT/{app01 => app}/migrations/__init__.py (100%) rename TP_PROJECT/{app01 => app}/models.py (100%) rename TP_PROJECT/{app01 => app}/serializers.py (84%) rename TP_PROJECT/{app01 => app}/tests.py (100%) rename TP_PROJECT/{app01 => app}/urls.py (97%) rename TP_PROJECT/{app01 => app}/views.py (74%) diff --git a/TP_PROJECT/TP/settings.py b/TP_PROJECT/TP/settings.py index 1dee54c..274f825 100644 --- a/TP_PROJECT/TP/settings.py +++ b/TP_PROJECT/TP/settings.py @@ -39,7 +39,7 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', 'rest_framework', 'django_filters', - 'app01' + 'app' ] MIDDLEWARE = [ diff --git a/TP_PROJECT/TP/urls.py b/TP_PROJECT/TP/urls.py index de6b545..eaa8fa9 100644 --- a/TP_PROJECT/TP/urls.py +++ b/TP_PROJECT/TP/urls.py @@ -18,5 +18,5 @@ from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), - path('api/', include('app01.urls')) + path('api/', include('app.urls')) ] diff --git a/TP_PROJECT/app01/__init__.py b/TP_PROJECT/app/__init__.py similarity index 100% rename from TP_PROJECT/app01/__init__.py rename to TP_PROJECT/app/__init__.py diff --git a/TP_PROJECT/app01/admin.py b/TP_PROJECT/app/admin.py similarity index 100% rename from TP_PROJECT/app01/admin.py rename to TP_PROJECT/app/admin.py diff --git a/TP_PROJECT/app01/apps.py b/TP_PROJECT/app/apps.py similarity index 86% rename from TP_PROJECT/app01/apps.py rename to TP_PROJECT/app/apps.py index 60a3620..ab972ce 100644 --- a/TP_PROJECT/app01/apps.py +++ b/TP_PROJECT/app/apps.py @@ -3,4 +3,4 @@ from django.apps import AppConfig class App01Config(AppConfig): default_auto_field = 'django.db.models.BigAutoField' - name = 'app01' + name = 'app' diff --git a/TP_PROJECT/app01/migrations/0001_initial.py b/TP_PROJECT/app/migrations/0001_initial.py similarity index 100% rename from TP_PROJECT/app01/migrations/0001_initial.py rename to TP_PROJECT/app/migrations/0001_initial.py diff --git a/TP_PROJECT/app01/migrations/0002_auto_20230526_1003.py b/TP_PROJECT/app/migrations/0002_auto_20230526_1003.py similarity index 93% rename from TP_PROJECT/app01/migrations/0002_auto_20230526_1003.py rename to TP_PROJECT/app/migrations/0002_auto_20230526_1003.py index bf7bad9..8a62cd8 100644 --- a/TP_PROJECT/app01/migrations/0002_auto_20230526_1003.py +++ b/TP_PROJECT/app/migrations/0002_auto_20230526_1003.py @@ -6,7 +6,7 @@ from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ - ('app01', '0001_initial'), + ('app', '0001_initial'), ] operations = [ diff --git a/TP_PROJECT/app01/migrations/0003_auto_20230529_1446.py b/TP_PROJECT/app/migrations/0003_auto_20230529_1446.py similarity index 96% rename from TP_PROJECT/app01/migrations/0003_auto_20230529_1446.py rename to TP_PROJECT/app/migrations/0003_auto_20230529_1446.py index 5ec91a8..714d803 100644 --- a/TP_PROJECT/app01/migrations/0003_auto_20230529_1446.py +++ b/TP_PROJECT/app/migrations/0003_auto_20230529_1446.py @@ -6,7 +6,7 @@ from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ - ('app01', '0002_auto_20230526_1003'), + ('app', '0002_auto_20230526_1003'), ] operations = [ diff --git a/TP_PROJECT/app01/migrations/__init__.py b/TP_PROJECT/app/migrations/__init__.py similarity index 100% rename from TP_PROJECT/app01/migrations/__init__.py rename to TP_PROJECT/app/migrations/__init__.py diff --git a/TP_PROJECT/app01/models.py b/TP_PROJECT/app/models.py similarity index 100% rename from TP_PROJECT/app01/models.py rename to TP_PROJECT/app/models.py diff --git a/TP_PROJECT/app01/serializers.py b/TP_PROJECT/app/serializers.py similarity index 84% rename from TP_PROJECT/app01/serializers.py rename to TP_PROJECT/app/serializers.py index 0547209..8132f92 100644 --- a/TP_PROJECT/app01/serializers.py +++ b/TP_PROJECT/app/serializers.py @@ -1,5 +1,5 @@ from rest_framework import serializers -from app01.models import TP +from app.models import TP class SerialMyModel(serializers.ModelSerializer): diff --git a/TP_PROJECT/app01/tests.py b/TP_PROJECT/app/tests.py similarity index 100% rename from TP_PROJECT/app01/tests.py rename to TP_PROJECT/app/tests.py diff --git a/TP_PROJECT/app01/urls.py b/TP_PROJECT/app/urls.py similarity index 97% rename from TP_PROJECT/app01/urls.py rename to TP_PROJECT/app/urls.py index 0a6b5f8..9983c58 100644 --- a/TP_PROJECT/app01/urls.py +++ b/TP_PROJECT/app/urls.py @@ -16,7 +16,7 @@ Including another URLconf # from django.contrib import admin from django.urls import path, include from rest_framework.routers import DefaultRouter -from app01 import views +from app import views router = DefaultRouter() router.register('', views.ModelQuery) diff --git a/TP_PROJECT/app01/views.py b/TP_PROJECT/app/views.py similarity index 74% rename from TP_PROJECT/app01/views.py rename to TP_PROJECT/app/views.py index f8a1938..a6bef81 100644 --- a/TP_PROJECT/app01/views.py +++ b/TP_PROJECT/app/views.py @@ -2,8 +2,8 @@ from django.shortcuts import render # Create your views here. from rest_framework import viewsets -from app01.models import TP -from app01.serializers import SerialMyModel +from app.models import TP +from app.serializers import SerialMyModel from django_filters.rest_framework import DjangoFilterBackend diff --git a/TP_PROJECT/db.sqlite3 b/TP_PROJECT/db.sqlite3 index 305b9ee2b5598e0d66ef45544e0955d667ca9bfd..7343e913d4580566a1c836bb8f5dd19596fcd63e 100644 GIT binary patch delta 927 zcmZWnOH30{6rIboollwG0tzh<m`(@9AW$rS5^!j$8xqjKhQz=?3sim$42UahLePi{ z$!JDNjGwq+L82LBO_WGnxNsv27P>%Km>4h^<ANpn`Vood<=)J>=e{%dz4KzLY;23Y zRghIjQIwZN5s3^ET?;4u);g-<;@Y#&L!@2YzRozyY`n%daQmj>e8=$(E-RJOq^QxT z{xrY1(C-tg{EapBjXqyRRek-b+S-P^gNEII8~oLEzUqox(om9AcvO5O`>=wqwuUsA zPx5=Mxi*{z+{Sf$h0{2Xi@1yfc+T{Qb=ZhYR0%s4zSPr0=I9x{JUSi<kC391J%n>? zbQ!2q+E7n4JTV%XoQ#Z*$@+Yy2eS3$%45Lk>y>4KiznyiP^IuYswVI2LOXBC$pRvz zMLB(><!&yAy%g@^Cwz~u@d4hz863u5)8jjXc8;@9Ia$eOeYpJ|EeqW`)1k1!bzw#r z61vH}ywD_Apa8h(2$@)m%4mUN;K;;bEljXCh5LupvB3nEGA-Z+P7Q?!@R)Zlj8D)q zmg~%#!eR?HpdZVL?1sZ-r2#lOnZ3y@C9}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