mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-09 22:44:54 +03:00
Debug check already exists in the main url file. No need to check here again.
This commit is contained in:
parent
e4501ab7ff
commit
820ccd2fb6
|
@ -9,12 +9,9 @@ from {{ cookiecutter.project_slug }}.users.views import (
|
||||||
)
|
)
|
||||||
|
|
||||||
app_name = "users"
|
app_name = "users"
|
||||||
urlpatterns = []
|
urlpatterns += [
|
||||||
|
|
||||||
if settings.DEBUG:
|
|
||||||
urlpatterns += [
|
|
||||||
path("", view=user_list_view, name="list"),
|
path("", view=user_list_view, name="list"),
|
||||||
path("~redirect/", view=user_redirect_view, name="redirect"),
|
path("~redirect/", view=user_redirect_view, name="redirect"),
|
||||||
path("~update/", view=user_update_view, name="update"),
|
path("~update/", view=user_update_view, name="update"),
|
||||||
path("<str:username>/", view=user_detail_view, name="detail"),
|
path("<str:username>/", view=user_detail_view, name="detail"),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user