2013-02-28 20:45:21 +08:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2015-08-17 22:45:00 +08:00
|
|
|
from django.conf.urls import url
|
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
|
2013-02-28 20:45:21 +08:00
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
2015-08-17 22:45:00 +08:00
|
|
|
urlpatterns = i18n_patterns(
|
|
|
|
url(r'^simple/$', lambda r: HttpResponse()),
|
|
|
|
url(r'^streaming/$', lambda r: StreamingHttpResponse([_("Yes"), "/", _("No")])),
|
2014-12-22 04:19:05 +08:00
|
|
|
)
|