title: Implementing http404 in django
body: <p>Implementing page not found in django and have looked at the documentation <a href="https://docs.djangoproject.com/en/dev/topics/http/views/#the-http404-exception" rel="nofollow">404</a></p>
  
  <p>I do not get a page not found error as yet what ami doing here</p>
  
  <p>In my code in urls i have done the following,</p>
  
  <pre><code>  url(r'^$', 'site_config.views.pagenotfound')
  </code></pre>
  
  <p>from django.http import Http404</p>
  
  <pre><code> def pagenotfound(request):
     return render_to_response('polls/pagenotfound.html', {})
  </code></pre>