Try,

ALLOWED_HOSTS = [
    '127.0.0.1',
    'localhost',
]

https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts


On Wed, Jun 12, 2013 at 8: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.
>
> Something went wrong. (500 server error)
>
>
>
>
> --
> 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.
>
>
>

-- 
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