mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-15 19:10:55 +03:00
17 lines
457 B
Python
17 lines
457 B
Python
from django.urls import path
|
|
|
|
from {{ cookiecutter.project_slug }}.users.views import (
|
|
user_list_view,
|
|
user_redirect_view,
|
|
user_update_view,
|
|
user_detail_view,
|
|
)
|
|
|
|
app_name = "users"
|
|
urlpatterns = [
|
|
path("", view=user_list_view, name="list"),
|
|
path("~redirect/", view=user_redirect_view, name="redirect"),
|
|
path("~update/", view=user_update_view, name="update"),
|
|
path("<str:username>/", view=user_detail_view, name="detail"),
|
|
]
|