当创建一个客户端的时候,自动创建一个API Token

This commit is contained in:
2025-12-12 11:55:36 +08:00
parent d7c1d00ba1
commit 97c0e0db0d
3 changed files with 20 additions and 12 deletions

View File

@@ -14,15 +14,15 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from tasks.views_frontend import index
urlpatterns = [
path('houtai/', admin.site.urls),
path('api/', include('tasks.urls')),
# Root URL points to home page
path('', index, name='index'),
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from tasks.views_frontend import index
urlpatterns = [
path('houtai/', admin.site.urls),
path('api/', include('tasks.urls')),
# Root URL points to home page
path('', index, name='index'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)