Jani wrote:
> I have a weird problem with flatpages. Everything works fine if I have
> DEBUG=True in the settings.py. However, when I change DEBUG=False
> flatpages gives error:
(...)
>   File
> "/opt/local/lib/python2.4/site-packages/django/template/loader_tags.py",
> line 58, in get_parent
>     raise TemplateSyntaxError, "Template %r cannot be extended, because
> it doesn't exist" % parent
>
> TemplateSyntaxError: Template 'base' cannot be extended, because it
> doesn't exist
> ---
>
> Same error is happening with development server and mod_python. I have
> 'flatpages/default.hmlt' in my templates and everything seems to be
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
maybe this is the problem 'default.hmlt', did you check it? I've
generated the same error
when I've wrote, in default.html, incorrect path to parent template.
do you have in root template director 404.html file? missing this file
also generated error
in my web app when I set DEBUG=False.

Regards,
Jakub


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

Reply via email to