There are a few ways to redirect to a 404 page (or page not found error) in Django. The easiest way is to raise Django’s built in 404 exception, like so: from django.http import Http404 def myView(request, param): if not param: raise Http404 return render_to_response('myView.html') You can add a file called 404.html to your templates […]
Continue reading...
Saturday, April 4, 2009
Comments Off on Redirecting to a 404 page in Django