mirror of
https://github.com/django/django.git
synced 2024-11-18 07:26:04 +00:00
10 lines
347 B
Python
10 lines
347 B
Python
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.conf.urls import patterns, url
|
||
|
from django.http import HttpResponse, StreamingHttpResponse
|
||
|
|
||
|
urlpatterns = patterns('',
|
||
|
url(r'^regular/$', lambda request: HttpResponse(b"regular content")),
|
||
|
url(r'^streaming/$', lambda request: StreamingHttpResponse([b"streaming", b" ", b"content"])),
|
||
|
)
|