I tend to use:
TEMPLATE_DIRS = (
os.getcwd()+'/static/templates'
)
so when using generic views it goes to os.getcwd()+'/static/templates/'
this lets me have my proyect live in different folders and run fine...
in your case it is specting a directory tree like this:
I think you can try accessing books/publisher_list.html instead of
just publisher_list.html
This should solve the problem, if I understand it correctly.
Regards, Alex A.
On Jan 4, 11:11 am, HB wrote:
> Hey,
> My Django project has the following structure:
> +++
> djcode
Hey,
My Django project has the following structure:
+++
djcode
# Django files (urls.py ...)
templates (for storing template pages)
books
# books application files (models.py ...)
publisher_list.html
+++
Here is a snippet from settings.py
TEMPLATE_DIRS
3 matches
Mail list logo