mirror of
https://github.com/django/django.git
synced 2025-01-15 04:45:51 +00:00
0e444e84f8
Regression in 94e7f471c4edef845a4fe5e3160132997b4cca81. This reverts commit 94e7f471c4edef845a4fe5e3160132997b4cca81 (refs #34069) and partly reverts commit 3b4728310a7a64f8fcc548163b0aa5f98a5c78f5. Thanks Anthony Baillard for the report. Co-Authored-By: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
13 lines
519 B
Python
13 lines
519 B
Python
from django.conf.urls.i18n import i18n_patterns
|
|
from django.http import HttpResponse
|
|
from django.urls import path, re_path
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
urlpatterns = i18n_patterns(
|
|
re_path(r"^(?P<arg>[\w-]+)-page", lambda request, **arg: HttpResponse(_("Yes"))),
|
|
path("simple/", lambda r: HttpResponse(_("Yes"))),
|
|
re_path(r"^(.+)/(.+)/$", lambda *args: HttpResponse()),
|
|
re_path(_(r"^users/$"), lambda *args: HttpResponse(), name="users"),
|
|
prefix_default_language=False,
|
|
)
|