Source

helloworld / 02-routing / django / helloworld / views.py

Full commit
1
2
3
4
5
6
7
8
9
from django.http import HttpResponse, HttpResponseNotFound


def welcome(request, **route_args):
    return HttpResponse("Hello World!")


def error404(request):
    return HttpResponseNotFound()