1 2 3 4 5 6
from django.http import HttpResponse from django.urls import path urlpatterns = [ path('', lambda req: HttpResponse('example view')), ]