On Wed, Jun 12, 2013 at 6:03 PM, Pepsodent Cola <pepsodentc...@gmail.com>wrote:

> Hi I have basically followed each step in Django's tutorial from part 1 to
> part 6.  What confuses me is when I disable DEBUG in settings.py file then
> no web url works at all anymore.  But the admin and public view pages works
> when DEBUG is enabled.
> https://docs.djangoproject.com/en/1.5/intro/
>
> Can somebody help me back trace what I have done wrong?  There are so many
> files and settings in Django I don't really know where to start
> troubleshooting.
> The only clue I have is this when looking at the web browser.
>

I know you've got the solution, but it's important to point out that this
last statement is incorrect. You have *lots* more clues -- they just don't
appear in the browser. When DEBUG=False, your server logs will contain the
full details of any problem you're having. If you've got your mail settings
set up correctly, you'll get an email with these details, too. In this
case, your server logs would have contained a note something like:

SuspiciousOperation: Invalid HTTP_HOST header (you may need to set
ALLOWED_HOSTS): 192.168.1.1:8000

which tells you exactly what you need to do.

Yours,
Russ Magee %-)

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to