On 11/16/05, Alice <[EMAIL PROTECTED]> wrote: > I'm getting these errors: > TemplateSyntaxError: Template 'poll_base' cannot be extended, because > it doesn't exist > > And no amount of path wrangling can seem to fix it. It can seem to find > the project okay, but not the templates.
If your TEMPLATE_DIRS is set to this... TEMPLATE_DIRS = [ "/home/alice/.../django_templates/pass1", "/home/alice/.../media/pass1", ] ...then it's looking for the files /home/alice/.../django_templates/pass1/poll_base.html or /home/alice/.../media/pass1/poll_base.html, in that order. Does one of those files exist? Also, I assume the "..." means you've cut some of it out for brevity. You don't want a "..." in your actual TEMPLATE_DIRS setting, because that has special meaning in filesystem paths. > Where should django be looking > for the templates if not in the specified TEMPLATE_DIRS list? It looks in the specified TEMPLATE_DIRS. > Does this change when using mod_python and I need to add something > to apache? The only thing that changes is that the Apache user (the user Apache runs under) needs permission to read your templates. > Are my MEDIA_whatevers pointing at the correct places? MEDIA_ROOT and MEDIA_URL are mainly used by FileFields, so Django knows where to put uploaded files. They're not relevant in this particular problem. Hope this helps! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org