Skip to content

Commit 0179da3

Browse files
committed
UPDATE: config.urls
1 parent 81bdd4d commit 0179da3

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/config/urls.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424

2525
urlpatterns = [
2626
path("admin/", admin.site.urls),
27-
27+
path("api-auth/", include("rest_framework.urls")),
28+
path("auth/", include("djoser.urls")),
29+
path("auth/", include("djoser.urls.authtoken")),
2830
path(
2931
"accounts/register/",
3032
RegistrationView.as_view(
@@ -34,13 +36,6 @@
3436
name="django_registration_register",
3537
),
3638
path("accounts/", include("django.contrib.auth.urls")),
37-
38-
path("api-auth/", include("rest_framework.urls")),
39-
40-
path('auth/', include('djoser.urls')),
41-
path('auth/', include('djoser.urls.authtoken')),
42-
4339
path("api/v1/", include("questions.api.urls")),
44-
4540
re_path(r"^.*$", IndexTemplateView.as_view(), name="entry-point"),
4641
]

0 commit comments

Comments
 (0)