Can I have a templates folder setup like:

/base.html
/admin/base_admin.html (which extends ../base.html)
/admin/payroll/base_payroll.html (which extends ../base_admin)
/admin/payroll/payperiod/form.html  (which extends ../base_payroll)

I've attempted to set it up like this, but seem to be getting some
issues with relativity. I've been finding that if I use
in /admin/base_admin.html
extends "../base.html", that will be fine for viewing base_admin
directly and everything works as expected, but if I subsequently use
the base_payroll template, I get a runtime error that ../base.html
cannot be found. I suspect its looking in /admin for a base.html which
obviously it will not find.

Is it generally a bad idea to nest folders like this for storing the
templates and instead stick with a single level folder with
descriptive names instead of folders?

/base.html
/admin_base.html
/admin_payroll_base.html
/admin_payroll_payperiod.html

I'm not using GAE with django, just the webapp, so not sure if I'm
missing something with respect to specifically setting a template
directory.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to