Thursday, July 19, 2012

Re: Getting the 500html page instead the 404html

Hi there,

You need to create a 404.html page in order to Django's generic view to display the 404 when DEBUG mode is false. Otherwise, it will display a 500 error.

Put the 404.html in your app's template directory and try again.

Best wishes,
Masud

On Wednesday, 18 July 2012 11:04:49 UTC+1, nffdiogosilva wrote:
Hello folks.

Just for the record, this is my first project in Django.

The problem is this:

When i have the debug on true and i search for a page that i know that don't exist i get the expected Django 404 error.
But when i turn off the Debug, instead of getting my 404html page, i get the 500html page. I don't even know which mistake in my code could be originating this.

Any thoughts?

Regards,
nffdiogosilva.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/ehGSf7sqsHkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment