On Tue, Mar 16, 2010 at 5:16 AM, Sander <[email protected]> wrote:

> Hi,
>
> I got this error when I'm trying to run my project on a production
> server with mod_python.
> "Template u'base.html' cannot be extended, because it doesn't exist"
> This looks weird to me, because base.html DOES exist and it's in the
> same directory as the file extending it. when I remove the {% extends
> "base.html" %} tag the template loads like it should, so it looks like
> the path to the template dir is correct.
>
> settings.py:
> TEMPLATE_DIRS = (
>    '/home/sander/Web/django_projects/templates/',
> )
>

What version of Django are you using? If trunk or 1.2 beta, this might be
due to ticket #12787 (http://code.djangoproject.com/ticket/12787). If 1.1.1
or earlier, my guess would be the file permissions don't allow Apache to
read the base.html file.

Karen

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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