1
0
mirror of https://github.com/django/django.git synced 2024-12-27 03:25:58 +00:00
django/tests/wsgi/urls.py

12 lines
264 B
Python
Raw Normal View History

from django.conf.urls import url
from django.http import HttpResponse, FileResponse
def helloworld(request):
return HttpResponse("Hello World!")
urlpatterns = [
url("^$", helloworld),
url(r'^file/$', lambda x: FileResponse(open(__file__, 'rb'))),
]