Search code examples
pythondjangoweb-applicationsdeployment

Django debug mode False then the page doesn't work


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?


Solution

  • 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