I'm trying TemplatePages. So far, it does what I want, namely, avoid
writing a views.py function for every static page. Some issues:
* I have the following directory structure:
/dir/myprj/myapp/
/dir/verdjnlib/
I add /dir to PYTHONPATH. In this layout, I have to put the html
templates to /dir/verdjnlib/templatepages/templates/templatepages. How
can I customize the directory without modifying verdjnlib for each
project?
* Is there a repository, or at least a tarball for download? I'd like to
package verdjnlib for Debian.
With kind regards,
Baurzhan.
It will find templates/pages anywhere that django looks for
templates, so that's sitetemplates and each app/templates directory.
I'm using it on a Linux box and just symlinking into my sitetemplates directory.
That leaves the 'static' page developer with access to the old content
in its old location until we move it all over. It's working very
well.
--
Derek
Ah, never mind. I've added '/dir/myprj/myapp/templates' to
TEMPLATE_DIRS, and it worked. Thanks Bryan and Derek!
With kind regards,
Baurzhan.