Current time: 04-24-2014, 09:23 AM Hello There, Guest! (LoginRegister)

Post Reply 
Django Template Location Trouble
10-25-2010, 09:47 PM
Post: #1
Django Template Location Trouble
I've gotten Django up and running on my Dreamhost account. The admin interface loads great; however I cannot get Django to find my template files, stored in the folder 'templates' in my project root. I get a TemplateDoesNotExist error every time. I have tried setting my TEMPLATE_DIRS both using the full path, and import os and getting dirname.

The site runs beautifully locally, and I can't figure out why it can't find my templates when running on the server.

If anyone has any tips on how to specify the correct folder, or where a better place to put my templates would be, it would be appreciated.
Find all posts by this user
Quote this message in a reply
12-30-2011, 04:45 PM
Post: #2
RE: Django Template Location Trouble
Same here. Did you find any solution?
Find all posts by this user
Quote this message in a reply
12-30-2011, 04:48 PM
Post: #3
RE: Django Template Location Trouble
is the directory readable? what are the permission settings?
Find all posts by this user
Quote this message in a reply
12-30-2011, 04:50 PM
Post: #4
RE: Django Template Location Trouble
templates directory and its contents are 755. Is that what its supposed to be?
Find all posts by this user
Quote this message in a reply
12-30-2011, 04:58 PM
Post: #5
RE: Django Template Location Trouble
Probably. I haven't used Django before. I was just having a stab at the cause. Sorry I can't be more helpful.
Find all posts by this user
Quote this message in a reply
12-30-2011, 05:00 PM
Post: #6
RE: Django Template Location Trouble
Oh! Thanks anyway. Nice of you. Running Django/Python apps on DH is a pain. I wish they did something more to help people like me. Now I have to look for another host.
Find all posts by this user
Quote this message in a reply
12-30-2011, 05:06 PM
Post: #7
RE: Django Template Location Trouble
There does seem to be quite a few problems with it according to the forum posts. It's a bit surprising though considering it's one of the standard frameworks out there. Have you contacted Support? They can be useful sometimes.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: