1
0
mirror of https://github.com/django/django.git synced 2024-12-26 02:56:25 +00:00
django/tests/wsgi/urls.py

13 lines
258 B
Python
Raw Normal View History

from django.http import FileResponse, HttpResponse
from django.urls import path
def helloworld(request):
return HttpResponse("Hello World!")
2016-11-12 17:11:23 +00:00
urlpatterns = [
path('', helloworld),
path('file/', lambda x: FileResponse(open(__file__, 'rb'))),
]