2013-02-28 20:45:21 +08:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
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 _
|
|
|
|
|
|
|
|
urlpatterns = i18n_patterns('',
|
2013-03-25 22:45:24 +08:00
|
|
|
(r'^simple/$', lambda r: HttpResponse()),
|
2013-02-28 20:45:21 +08:00
|
|
|
(r'^streaming/$', lambda r: StreamingHttpResponse([_("Yes"), "/", _("No")])),
|
|
|
|
)
|