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