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 9015501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:45:58+00:00 2026-06-16T03:45:58+00:00

sooo with DEBUG = False in your settings.py, it’ll show templates/500.html if there’s an

  • 0

sooo with DEBUG = False in your settings.py, it’ll show templates/500.html if there’s an error etc.

with DEBUG = True, django’s development error page thing will show and give you (a developer) I useful error message and debugging info

Q. In a production environment where I have DEBUG = False, is there a way to show the “development error page” for error’s which occur in the Django /admin site only?

e.g. it’s not neccessary to show a nice looking error page to an admin user, and I could more quickly fix a problem since an admin could just copy and paste and email the error to me, instead of me having to SSH into multiple application server things and inspect the log

  • 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-16T03:46:00+00:00Added an answer on June 16, 2026 at 3:46 am

    Django’s DEBUG setting does other things (like log every SQL query) which will quickly consume your server memory, but sure why not handle exceptions however you like?

    Django’s pretty-exception has a lot of code which sanitizes and introspects in django.views.debug but it should be straight forward to spit out a simple exception.

    Just create a middleware that uses the process_exception hook.

    https://docs.djangoproject.com/en/dev/topics/http/middleware/?from=olddocs#process_exception

    class MyExceptionHandler(object):
        def process_exception(self, request, exception):
            if request.path.startswith('/admin/'):
                 return http.HttpResponse(
                          "We've encountered an exception in the /admin/ pages!")
    

    You’re free to return as much debug information as you’d like.

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

Sidebar

Related Questions

sooo if i install first visual studio 2008 i get a error, this is
Sooo, i keep getting the error: 'object' does not contain a definition for 'text'
There's sooo much literature about fetching and eager loading when doing the actual query
There are sooo many posts about converting from int to string but they all
I searched for some solutions in PHP/HTML/CSS for this, but nothing worked so far,
i am taking a course on GPU programming. There is no IDE on the
I have an MFC dialog in which there are two radio buttons. I have
I'm trying to find out what my options are to inject a local html
I have been working on my dev branch for sooo long that nothing in
Sooo basically I have a table called Comment. On that table I have three

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.