forked from kongfp/TP_Admin
31
0
Fork 1

修改app名称为app

pull/2/head
lishuang 2 years ago
parent 99a8a978c9
commit 7f56dc2dad

@ -39,7 +39,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'rest_framework',
'django_filters',
'app01'
'app'
]
MIDDLEWARE = [

@ -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'))
]

@ -3,4 +3,4 @@ from django.apps import AppConfig
class App01Config(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'app01'
name = 'app'

@ -6,7 +6,7 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app01', '0001_initial'),
('app', '0001_initial'),
]
operations = [

@ -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 = [

@ -1,5 +1,5 @@
from rest_framework import serializers
from app01.models import TP
from app.models import TP
class SerialMyModel(serializers.ModelSerializer):

@ -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)

@ -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

Binary file not shown.
Loading…
Cancel
Save