I'm getting a 404 from my Django server even though it's aware of my view code. If I purposely misspelled the name of the view function, Django complains, so I know it's looking in the right place and that it is aware of this function.
My urls.py
entry looks like this
url(r"^pdfgen/$", 'apps.pdfgen.views.pdfgen'),
And my view code is this
def pdfgen(request):
html = "<html><body>This is a test.</body></html>"
return HttpResponse(html)
So why is it that Django 404's
when I visit localhost:xxxx/pdfgen/
?