使用DRF开发API

This commit is contained in:
2025-11-15 12:11:31 +08:00
parent 7010faee4f
commit 3a0e3e9ad1
5 changed files with 25 additions and 2 deletions

View File

@@ -37,7 +37,9 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'myapp'
'rest_framework',
'myapp',
'myapp_api'
]
MIDDLEWARE = [