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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:02:39+00:00 2026-05-27T18:02:39+00:00

I need to expose my site to the internet (there are things keeping it

  • 0

I need to expose my site to the internet (there are things keeping it from being stumbled upon by most people) but I want to make sure the debug page which appears when a 500 (?) error occurs is only seen by people inside my LAN; that is, a known IP range.

I am referring specifically to errors thrown by my Django site — I don’t need to hide 500 pages that’re generated by my webserver (e.g. when an error occurs before things ever “get” to the Django side).

I looked into this some, and discovered I can check the IP via HTTP headers, or through various functions to get remote IP. But then there is the matter of configuring the debug pages based on such.

However, given the sensitive nature of the information I am attempting to hide, I thought it best to ask around first before just going w/whatever shoe appears to fit first. I would think Django is mature enough and has enough users that there is one or more “right” ways to do this, so I’m asking for some input.

Add’l info: running Django 1.3 and 1.4 (dev) on Apache with mod_wsgi on an Ubuntu box.

  • 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-05-27T18:02:40+00:00Added an answer on May 27, 2026 at 6:02 pm

    You are better off configuring properly the ADMINS and SMTP settings so that details of such errors are sent to you in email. Trying to base configuration differences off client IP is a bad idea especially when proxies are involved.

    You might also look at Sentry and New Relic.

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

Sidebar

Related Questions

I need to expose some logic locally as a service… The objects sent/received to/from
Is there some sort of built-in authentication in WCF? I need to expose a
I need to expose some input fields based on what properties I find for
I need to expose some C++ classes to C# (I am building on Linux,
I need to expose a third party vendor's web service internally on my network.
Scenario : You need to expose the same app on different screens - let's
I have a RestFull grails api that i expose through grails Controller. I need
I typically use the site http://www.pinvoke.net/ to grab a DllImport declaration whenever I need
This question may expose my ignorance as a web developer, but that wouldn't exactly
I need to expose my application url in a friendly way. For example while

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.