Wednesday, March 4, 2015

Re: Can't run django!

You might see if DEBUG is being set to False in an unexpected location by using the silver searcher (also on windows) to quickly search for a string in a directory tree.

$ ag DEBUG 

within your app should tell you all of the places it is being set.

On Mon, Mar 2, 2015 at 9:44 AM, David Zahedi <davidza001@gmail.com> wrote:
Hi there,

I am using python 2.7 and django 1.75; when I run "manage.py runserver" I get the following error:

CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False.
An exception has occurred, use %tb to see the full traceback.


My DEBUG is True.

Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ea41d3e8-4d93-4076-8df8-a099360d13aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2By5TLaXtgX14F%3DTov%2BY%3Du3ut0W-B9TNv4bTqJZA3EmKVR97cA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment