Re: Not reading from TEMPLATE_DIRS in settings.py
On 17-8-2012 14:47, madala wrote:
> Thanks I solved it. Was looking up wrong directory because I followed the
> instructions to put the absolute path. If I put the relative path it works
> fine. Thanks for taking time to answer anyway. People are so kind! :0)
You didn't solve it because it /should/ be absolute paths. Can you try
the following:
cd <your project dir>
python manage.py shell
At the prompt:
>>> from django.conf import settings
>>> import os.path
>>> [ os.path.abspath(d) for d in settings.TEMPLATE_DIRS ]
That should show you the absolute paths django has now come up with.
Compare them with your originals:
'/home/madala/WebsiteCode/templates',
"/home/madala/Website/templates",
--
Melvyn Sopacua
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home