Hi,

I try to deploy my web application written with django on Apache2 with
mod_python, but when I try to load my homepage using apache at
http://localhost/myproject/  my template does not load although the
TEMPLATE_DIR in django settings is correct, why?

My Apache2 http.conf file is correct because I've try to deploy a
simple web application and it's works, I think that the problem is the
path of templates, in fact I've created a directory in the root (/) of
my file system and I put templates in there,  and the template has
been loaded correctly.

Django error is:

emplateDoesNotExist at /sds/

index.html

Request Method:         GET
Request URL:    http://localhost/sds/
Exception Type:         TemplateDoesNotExist
Exception Value:

index.html

Exception Location:     /usr/local/lib/python2.6/dist-packages/django/
template/loader.py in find_template_source, line 73
Python Executable:      /usr/bin/python
Python Version:         2.6.2
Python Path:    ['/home/utente/Scrivania/', '/home/utente/Scrivania/
web_App', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/
usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/
python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/
python2.6/dist-packages/Numeric', '/usr/lib/python2.6/dist-packages/
PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/var/lib/python-
support/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/var/
lib/python-support/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-
packages']
Server time:    Mon, 15 Jun 2009 08:59:57 -0500
Template-loader postmortem

Django tried loading these templates, in this order:

    * Using loader
django.template.loaders.filesystem.load_template_source:
          o /home/utente/Scrivania/web_App/sds/templates/index.html
(File exists)

           --->     The file exists but It does not loaded..... Why?


          o /templates/index.html (File does not exist)
    * Using loader
django.template.loaders.app_directories.load_template_source:
          o /usr/local/lib/python2.6/dist-packages/django/contrib/
admin/templates/index.html (File does not exist)
          o /usr/local/lib/python2.6/dist-packages/django/contrib/
admindocs/templates/index.html (File does not exist)

thanks, Nicola.....


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