feat: 移除Swagger/Redoc; 首页按区域分块显示设备清单

This commit is contained in:
2026-05-19 14:57:53 +08:00
parent 44d5b08a69
commit 584ef677c8
5 changed files with 172 additions and 253 deletions

View File

@@ -30,7 +30,6 @@ INSTALLED_APPS = [
'rest_framework',
'rest_framework_simplejwt',
'django_filters',
'drf_yasg',
'device_management',
]
@@ -119,17 +118,6 @@ REST_FRAMEWORK = {
'PAGE_SIZE': 20,
}
SWAGGER_SETTINGS = {
'SECURITY_DEFINITIONS': {
'Bearer': {
'type': 'apiKey',
'name': 'Authorization',
'in': 'header'
}
},
'USE_SESSION_AUTH': True,
}
from datetime import timedelta
SIMPLE_JWT = {