2016-02-29 16:24:19 +08:00
|
|
|
from django.conf.urls.i18n import i18n_patterns
|
|
|
|
from django.http import HttpResponse
|
2018-12-08 06:52:28 +08:00
|
|
|
from django.urls import path, re_path
|
2017-01-27 03:58:33 +08:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2016-02-29 16:24:19 +08:00
|
|
|
|
|
|
|
urlpatterns = i18n_patterns(
|
2018-12-08 06:52:28 +08:00
|
|
|
re_path(r"^(?P<arg>[\w-]+)-page", lambda request, **arg: HttpResponse(_("Yes"))),
|
|
|
|
path("simple/", lambda r: HttpResponse(_("Yes"))),
|
|
|
|
re_path(r"^(.+)/(.+)/$", lambda *args: HttpResponse()),
|
2023-04-28 14:05:43 +08:00
|
|
|
re_path(_(r"^users/$"), lambda *args: HttpResponse(), name="users"),
|
2016-02-29 16:24:19 +08:00
|
|
|
prefix_default_language=False,
|
|
|
|
)
|