mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-01 11:22:24 +02:00
Use french in the URLs paths.
It was using a mix of french and english, so I uniformized everything.
This commit is contained in:
parent
5a309ee8e8
commit
5c2ac34163
1 changed files with 10 additions and 10 deletions
|
@ -13,17 +13,17 @@ Including another URLconf
|
||||||
1. Import the include() function: from django.urls import include, path
|
1. Import the include() function: from django.urls import include, path
|
||||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||||
"""
|
"""
|
||||||
# fmt:off
|
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.contrib.auth.views import (PasswordResetCompleteView,
|
from django.contrib.auth.views import (
|
||||||
PasswordResetConfirmView,
|
PasswordResetCompleteView,
|
||||||
PasswordResetDoneView,
|
PasswordResetConfirmView,
|
||||||
PasswordResetView)
|
PasswordResetDoneView,
|
||||||
|
PasswordResetView,
|
||||||
|
)
|
||||||
from django.urls import include, path
|
from django.urls import include, path
|
||||||
from django.views.generic.base import TemplateView
|
from django.views.generic.base import TemplateView
|
||||||
|
|
||||||
# fmt:on
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("admin/", admin.site.urls),
|
path("admin/", admin.site.urls),
|
||||||
path("commande/", include("la_chariotte.order.urls")),
|
path("commande/", include("la_chariotte.order.urls")),
|
||||||
|
@ -35,17 +35,17 @@ urlpatterns = [
|
||||||
# prompts for a new password
|
# prompts for a new password
|
||||||
# - PasswordResetCompleteView shows a success message for the above
|
# - PasswordResetCompleteView shows a success message for the above
|
||||||
path(
|
path(
|
||||||
"comptes/reset/<uidb64>/<token>/",
|
"comptes/reinitialisation/<uidb64>/<token>/",
|
||||||
PasswordResetConfirmView.as_view(),
|
PasswordResetConfirmView.as_view(),
|
||||||
name="password_reset_confirm",
|
name="password_reset_confirm",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"comptes/reset/mail_sent/",
|
"comptes/reinitialisation/mail-envoyé/",
|
||||||
PasswordResetDoneView.as_view(),
|
PasswordResetDoneView.as_view(),
|
||||||
name="password_reset_done",
|
name="password_reset_done",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"comptes/reset/done/",
|
"comptes/reinitialisation/terminé/",
|
||||||
PasswordResetCompleteView.as_view(),
|
PasswordResetCompleteView.as_view(),
|
||||||
name="password_reset_complete",
|
name="password_reset_complete",
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue