|
1 |
| -""" |
2 |
| -URL configuration for config project. |
3 |
| -
|
4 |
| -The `urlpatterns` list routes URLs to views. For more information please see: |
5 |
| - https://docs.djangoproject.com/en/5.0/topics/http/urls/ |
6 |
| -Examples: |
7 |
| -Function views |
8 |
| - 1. Add an import: from my_app import views |
9 |
| - 2. Add a URL to urlpatterns: path('', views.home, name='home') |
10 |
| -Class-based views |
11 |
| - 1. Add an import: from other_app.views import Home |
12 |
| - 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') |
13 |
| -Including another URLconf |
14 |
| - 1. Import the include() function: from django.urls import include, path |
15 |
| - 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) |
16 |
| -""" |
17 |
| - |
18 | 1 | from django.conf import settings
|
19 | 2 | from django.conf.urls.static import static
|
20 | 3 | from django.contrib import admin
|
|
25 | 8 | SpectacularSwaggerView,
|
26 | 9 | )
|
27 | 10 |
|
| 11 | + |
28 | 12 | urlpatterns = [
|
29 |
| - path("admin/", admin.site.urls), |
| 13 | + path("api/admin/", admin.site.urls), |
30 | 14 | path("api/schema/", SpectacularAPIView.as_view(), name="schema"),
|
31 | 15 | path("api/schema/swagger-ui/", SpectacularSwaggerView.as_view(url_name="schema"), name="swagger-ui"),
|
32 | 16 | path("api/schema/redoc/", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),
|
|
0 commit comments