Reputation: 317
I'M using Django in local server. If I turned debug mode to False, the web page is not available.(500) But it works perfect if the debug mode is true. What can I do to fix this?
Upvotes: -1
Views: 781
Reputation: 2198
if it's django 1.5 it could be related to allowed host setting
https://docs.djangoproject.com/en/1.5/ref/settings/#std%3asetting-ALLOWED_HOSTS
Upvotes: 2