tests/i18n/patterns/urls/namespace.py
raw| 1 | from django.urls import path, re_path |
| 2 | from django.utils.translation import gettext_lazy as _ |
| 3 | from django.views.generic import TemplateView |
| 4 | |
| 5 | view = TemplateView.as_view(template_name="dummy.html") |
| 6 | |
| 7 | app_name = "account" |
| 8 | urlpatterns = [ |
| 9 | re_path(_(r"^register/$"), view, name="register"), |
| 10 | re_path(_(r"^register-without-slash$"), view, name="register-without-slash"), |
| 11 | path(_("register-as-path/"), view, name="register-as-path"), |
| 12 | ] |