django/tests/wsgi/urls.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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-13 01:11:23 +08:00
urlpatterns = [
path("", helloworld),
path("file/", lambda x: FileResponse(open(__file__, "rb"))),
]