django/tests/wsgi/urls.py
django-bot 6a682b38e7 [4.0.x] Refs #33476 -- Reformatted code with Black.
Backport of 9c19aff7c7561e3a82978a272ecdaad40dda5c00 from main.
2022-02-08 12:15:38 +01:00

13 lines
258 B
Python

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