django - CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False -
I use Django 1.6.5 with settings in my program txsite:
DEBUG = true I set the lie to debug, but when I get the runner , I get the following error: < pre class = "lang-none prettyprint-override"> CommandError: You have to set the settings. OLOWOWHESTS If DEBUG is False I ALLOWED_HOSTS = ['127.0.0.1', 'localhost'] but I get the same error. Does anyone know this address?
Try
ALLOWED_HOSTS = ['*'] Less secure If you are not on a firewall or public LAN, but what I use and it works.
Edit: Interestingly enough, I have to add some of my 1.8 projects, even if DEBUG = True . Why so very uncertain
Comments
Post a Comment