|
|
@ -15,13 +15,17 @@ Including another URLconf |
|
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) |
|
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) |
|
|
|
""" |
|
|
|
""" |
|
|
|
from django.contrib import admin |
|
|
|
from django.contrib import admin |
|
|
|
from django.urls import path, include |
|
|
|
from django.urls import path, include, re_path |
|
|
|
|
|
|
|
from django.views.static import serve |
|
|
|
|
|
|
|
from django.conf import settings |
|
|
|
from rest_framework.documentation import include_docs_urls |
|
|
|
from rest_framework.documentation import include_docs_urls |
|
|
|
from rest_framework.authtoken.views import obtain_auth_token |
|
|
|
from rest_framework.authtoken.views import obtain_auth_token |
|
|
|
from update import consumers |
|
|
|
from update import consumers |
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = [ |
|
|
|
urlpatterns = [ |
|
|
|
path('admin/', admin.site.urls), |
|
|
|
path('admin/', admin.site.urls), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
re_path(r'^static/(?P<path>.*)$', serve, {'document_root': settings.STATIC_ROOT}), |
|
|
|
path('api-token-auth/', obtain_auth_token), |
|
|
|
path('api-token-auth/', obtain_auth_token), |
|
|
|
path('update/', include('update.urls')), # cinema Update 备注 |
|
|
|
path('update/', include('update.urls')), # cinema Update 备注 |
|
|
|
path('ec/', include('dspt_api.urls')), # 电商平台接口 |
|
|
|
path('ec/', include('dspt_api.urls')), # 电商平台接口 |
|
|
|