mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #26431 -- Added more test for translated path().
This commit is contained in:
committed by
Mariusz Felisiak
parent
9fd1b6f3f8
commit
595738296f
@@ -8,7 +8,8 @@ view = TemplateView.as_view(template_name="dummy.html")
|
||||
urlpatterns = [
|
||||
path("not-prefixed/", view, name="not-prefixed"),
|
||||
path("not-prefixed-include/", include("i18n.patterns.urls.included")),
|
||||
re_path(_(r"^translated/$"), view, name="no-prefix-translated"),
|
||||
path(_("translated/"), view, name="no-prefix-translated"),
|
||||
re_path(_(r"^translated-regex/$"), view, name="no-prefix-translated-regex"),
|
||||
re_path(
|
||||
_(r"^translated/(?P<slug>[\w-]+)/$"),
|
||||
view,
|
||||
@@ -25,6 +26,11 @@ urlpatterns += i18n_patterns(
|
||||
view,
|
||||
name="with-arguments",
|
||||
),
|
||||
path(
|
||||
_("path-with-arguments/<str:argument>/"),
|
||||
view,
|
||||
name="path-with-arguments",
|
||||
),
|
||||
re_path(_(r"^users/$"), view, name="users"),
|
||||
re_path(
|
||||
_(r"^account/"), include("i18n.patterns.urls.namespace", namespace="account")
|
||||
|
||||
Reference in New Issue
Block a user