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