You were right about the 404.html template being required. And I found
this ticket to help back up my problem: 
http://code.djangoproject.com/ticket/3335

It's a won't fix issue, but they put a comment in the code that was
suppose to alert me that I needed the template, but I totally missed
it, so that solution sort of failed me. Oh well, I'm sure most other
people would have caught it.

The strange thing is that I updated both servers to the trunk (0.97-
pre-SVN-7193), and only one of them required the 404 template when
DEBUG was set to False. So I'm guessing that it might be something
external to Django, since my deployments on both boxes were almost
identical. Both running on Apache with mod_python, and running all the
same apps and very similar settings. Strange bug.

On Mar 3, 5:19 pm, Michael <[EMAIL PROTECTED]> wrote:
> In your templates folder create a 404.html file. This should solve
> your problems. I read that there needs to be a 404.html and 500.html
> file somewhere but can't find the link to point you to it.
>
> On Mon, Mar 3, 2008 at 3:20 PM, Lewis Bergman <[EMAIL PROTECTED]> wrote:
>
> >  If the configs are nearly identical, do a diff and see what *is* the
> >  difference between the two? Are the two running the same django versions?
>
> >  bfrederi wrote:
> >  > I am using flatpages on a production box, and whenever I don't set
> >  > DEBUG to True in the settings.py file, the middleware won't redirect
> >  > to my flatpages for some reason. It gives me a 'TemplateDoesNotExist:
> >  > 404.html' error message.
>
> >  > It works perfectly fine on another box, and the setup for both boxes
> >  > are nearly identical. I can't figure out why one works, and the other
> >  > doesn't. Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to