Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8455873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:24:00+00:00 2026-06-10T12:24:00+00:00

Implementing page not found in django and have looked at the documentation 404 I

  • 0

Implementing page not found in django and have looked at the documentation 404

I do not get a page not found error as yet what ami doing here

In my code in urls i have done the following,

  url(r'^$', 'site_config.views.pagenotfound')

from django.http import Http404

 def pagenotfound(request):
   return render_to_response('polls/pagenotfound.html', {})
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:24:01+00:00Added an answer on June 10, 2026 at 12:24 pm

    The way you handle 404 and 500 in django is: by default, in the templates directory, create a 404.html

    If you need a custom handler, just add these to urls.py

    handler404 = 'views.page_not_found_custom'    
    handler500 = 'views.page_error_found_custom'    
    

    design the 404.html page the way you want

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm implementing Bing Maps on a page (I'd prefer Google Maps, but it's not
I have a question on CSS media query.. I am implementing a HTML page
I'm having a problem implementing custom 404 error pages on my Windows/IIS/PHP webhost. Whenever
I've looked through similar questions but not found the exact working solution I'm after.
I have links in a ListView going to a detailed page view (not MVC):
Whats the best practice for implementing a confirmation page in .Net? I've used response.redirect(Thankyou.aspx)
I am implementing a search module with result page support paging. The example provided
I am implementing a jquery file upload page. While a user is adding files,
I am implementing CodeMirror ( http://marijn.haverbeke.nl/codemirror/ ) on a page where document.domain needs to
i'm looking into implementing something similar to the li's in chrome extension page .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.