2013-02-28 12:45:21 +00:00
|
|
|
from django.conf.urls.i18n import i18n_patterns
|
2013-03-25 14:45:24 +00:00
|
|
|
from django.http import HttpResponse, StreamingHttpResponse
|
2018-12-07 22:52:28 +00:00
|
|
|
from django.urls import path
|
2017-01-26 19:58:33 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2013-02-28 12:45:21 +00:00
|
|
|
|
2015-08-17 14:45:00 +00:00
|
|
|
urlpatterns = i18n_patterns(
|
2022-02-03 19:24:19 +00:00
|
|
|
path("simple/", lambda r: HttpResponse()),
|
|
|
|
path("streaming/", lambda r: StreamingHttpResponse([_("Yes"), "/", _("No")])),
|
2014-12-21 20:19:05 +00:00
|
|
|
)
|