On 26/04/2013 3:41am, dsmakearney@gmail.com wrote:
> I am running python 3.3.1, django-dev, Windows 7,
>
<snip>
>
> When I Set DEBUG=False, I then get "Server Error (500)" not 404.
>
> With some experimentation, I discovered that if I set DEBUG=False the
> tutorial app appears to always fail with Server Error 500. As a test, I
> went back to tutorial part 1. created a new minimal project, confirmed
> that it worked, then set DEBUG=False. and voila I get Server Error (500)
> again.
Try launching your browser at http://localhost:8000/admin instead of
127.0.0.1:8000 and make sure 'localhost' is in ALLOWED_HOSTS.
That should make the 500 error go away when DEBUG == False
Mike
>
> That is:
>
> * DEBUG = True, in debug mode - the code works without error
> * DEBUG = False, in production mode - the code fails Server Error (500)
>
> Aside from my setting DEBUG to False, this is all django generated code.
>
> I am a django newbie, but this feels like a bug.
>
> Checking the IRC archives I see more than one question about cryptic
> Server Error (500) occurrences.
>
> Comments?
>
>
>
>
> --
> 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?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+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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment