Eric Sauer
Eric Sauer

Reputation: 870

Django - 500 INTERNAL SERVER ERROR

What I am currently trying to do is to create a Error 404 page on my Django Server. In order to see the Error 404 page, you must turn django's debugging to off. So when I change it to "DEBUG = False" I am able to see my webpage and see the Error 404 page when going to a page that is not on the server. I went back to my main page and with Firebug realized that I was getting a

NetworkError: 500 INTERNAL SERVER ERROR

It is preventing me to pull data from Django. However, when I change "DEBUG = False" to "DEBUG = True". Everything works.

Any Clue?

edit: Full error

"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/ext-4.0.2a/resources/css/ext-all.css"

edit edit: So I was kinda reserved with what I posted on error side. I'll take a look at the static serving however this is the full error

"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/ext-4.0.2a/resources/css/ext-
"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/ext-4.0.2a/bootstrap.js"
"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/example-data.js"
"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/StatusBar.js"
"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/LiveSearchGridPanel.js"
"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/frontend.js"
"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/InspectHostPanel.js"
"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/InspectGuestPanel.js"
"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/StatusBar.js"
"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/LiveSearchGridPanel.js"
"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/frontend.js"
"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/InspectHostPanel.js"
"NetworkError: 500 INTERNAL SERVER ERROR - http://localhost:8000/static/InspectGuestPanel.js"

So its not with one certain class it an issue of not being able to pull from Django. Personally it looks like Its try to pull from the web server rather than the folders.

Upvotes: 0

Views: 27379

Answers (1)

binithb
binithb

Reputation: 2000

For django v 1.5+ , in your settings.py file, Make the configuration ALLOWED_HOSTS = ['*'] if you want a quick fix

If you are really going production (and concerned about security), put allowed host names in ALLOWED_HOSTS

This SO link has more info

Setting DEBUG = False causes 500 Error

Upvotes: 1

Related Questions