Hi everyone.  I have checked and re-checked my path for my templates
in the settings file.  I have also confirmed at my template is sitting
in the right directory:  I'm trying to do a direct to template in my
urls.py file as follows:


from django.conf.urls.defaults import *

urlpatterns = patterns('django.views.generic.simple',
    (r'^test/$','direct_to_template',{'template': 'base.html'}),
)



The Traceback I get is:

TemplateDoesNotExist
base.html

Django tried loading these templates, in this order:

    * Using loader
django.template.loaders.filesystem.load_template_source:
    * Using loader
django.template.loaders.app_directories.load_template_source:
          o /usr/lib/python2.5/site-packages/django/contrib/admin/
templates/base.html (File does not exist)


any idea why it's looking in the admin/templates directory?

Using python 2.5 and django 0.97x...





--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to