feat: 多用户系统改造(数据模型 + 认证 API)

This commit is contained in:
maoshen
2026-04-15 02:59:36 +00:00
parent 75423d4e0e
commit e6aecd2752
13 changed files with 283 additions and 13 deletions

View File

@@ -21,8 +21,10 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'rest_framework.authtoken',
'corsheaders',
'diary',
'authentication',
]
MIDDLEWARE = [

View File

@@ -6,5 +6,6 @@ from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('api/auth/', include('authentication.urls')),
path('api/', include('diary.urls')),
]