Re: Beginner needing help with a TemplateDoesNotExist exception, when the file does exist.

2011-06-05 Thread Karen Tracey
On Sun, Jun 5, 2011 at 11:23 PM, Christopher wrote: > Martin > > Just to let you know, moving the templates directory to the root of my > project did indeed work. I no longer get that exception. However, I > would still like to know why django was telling me that the file does > not exist when

Re: Beginner needing help with a TemplateDoesNotExist exception, when the file does exist.

2011-06-05 Thread Kenneth Gonsalves
On Sun, 2011-06-05 at 20:23 -0700, Christopher wrote: > would still like to know why django was telling me that the file does > not exist when it clearly does. some of django's error messages are misleading. 'Does not exist' often means - 'does not compile' or 'cannot find'. -- regards KG http:/

Re: Beginner needing help with a TemplateDoesNotExist exception, when the file does exist.

2011-06-05 Thread Christopher
Martin Just to let you know, moving the templates directory to the root of my project did indeed work. I no longer get that exception. However, I would still like to know why django was telling me that the file does not exist when it clearly does. I posted my virtual host config so if you, or a

Re: Beginner needing help with a TemplateDoesNotExist exception, when the file does exist.

2011-06-05 Thread Mike Dewhirst
Sorry Chris, I was being a bit cryptic ... Here is an excerpt from my settings.py PROJECT_DIR = os.path.realpath(os.path.dirname(__file__)).replace('\\','/') # if templates are not found here look in app_name/templates TEMPLATE_DIRS = (os.path.join(PROJECT_DIR, 'templates/').replace('\\','/'),)

Re: Beginner needing help with a TemplateDoesNotExist exception, when the file does exist.

2011-06-05 Thread Christopher
Hi Martin Thanks for this insight. I saw them placing templates outside the project directory in the tutorial, so I thought that might be a common thing to do. I am switching from php to python, so I'm learning a lot. What you say does make sense from a SCM point of view. I am assuming that mo

Re: Beginner needing help with a TemplateDoesNotExist exception, when the file does exist.

2011-06-05 Thread Kenneth Gonsalves
On Sun, 2011-06-05 at 18:47 -0700, Christopher wrote: > >From what I understand, the location of my templates is supposed to > go > in the TEMPLATE_DIRS block of the settings.py file. This directory is > located in my home/foobar/, thus the /home/foobar/templates. > > Is there something wrong wit

Re: Beginner needing help with a TemplateDoesNotExist exception, when the file does exist.

2011-06-05 Thread Martin
It's a bit weird that you have your templates in your home folder. I would expect them to be in your project's folder. For example: /home/foobar/projects/yourproject/templates If you were using some version control software like git you would want to have everything that belongs to yout project i

Re: Beginner needing help with a TemplateDoesNotExist exception, when the file does exist.

2011-06-05 Thread Christopher
>From what I understand, the location of my templates is supposed to go in the TEMPLATE_DIRS block of the settings.py file. This directory is located in my home/foobar/, thus the /home/foobar/templates. Is there something wrong with this? On Jun 5, 4:38 pm, Mike Dewhirst wrote: > On 6/06/2011 6

Re: Beginner needing help with a TemplateDoesNotExist exception, when the file does exist.

2011-06-05 Thread Mike Dewhirst
On 6/06/2011 6:51am, Christopher wrote: 110 "/home/foobar/templates", ??? -- 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

Beginner needing help with a TemplateDoesNotExist exception, when the file does exist.

2011-06-05 Thread Christopher
OK. I have read many other accounts of this happening, and they were always solved when the question asker correctly modified their TEMPLATE_DIRS setting. None of these suggestions have worked for me. The strange thing is that the template loads when using the Django web server, but errors out when