I think I'm missing something fundamental here because this setup just
isn't working.

*deep breath*

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. Where should django be looking
for the templates if not in the specified TEMPLATE_DIRS list? Does this
change when using mod_python and I need to add something to apache? Are
my MEDIA_whatevers pointing at the correct places? My structure is
below

dirs:
# project root
/home/alice/.../pass1/

# template root
/home/alice/.../django_templates/pass1/

# contains symlink to admin media and project templates
/home/alice/.../media/
admin_media
->/home/alice/.../django/django_src/django/contrib/admin/media/

/home/alice/.../media/
pass1 -> /home/alice/.../django_templates/pass1/


vars:
# Absolute path to the directory that holds media.
MEDIA_ROOT = '/home/alice/.../media/pass1/'

# URL that handles the media served from MEDIA_ROOT.
MEDIA_URL = 'http://localhost/media/'

TEMPLATE_DIRS = (
"/home/alice/.../django_templates/pass1",
"/home/alice/.../media/pass1",
)

apache conf:
<Location "/">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE pass1.settings
        PythonDebug On
        PythonPath "['/home/alice/.../'] + sys.path"
</Location>
<Location "/media/">
        SetHandler None
</Location>
<LocationMatch "\.(jpg|gif|png)$">
        SetHandler None
</LocationMatch>
MaxRequestsPerChild 1


Sorry for the long post, but can anyone spot why I'm getting these
'template doesn't exist' errors and point in a direction for me to fix
it? It's all pretty much straight from the docs.

Any help would be greatly appreciated. This aspect is being to suck :P

Alice

Reply via email to