This is what I usually use. It looks for a directory called
"templates" relative to the current handler script.
def get_template_path(template_name):
""" Returns the path to a given template_name"""
return os.path.join(os.path.dirname(__file__), 'templates',
'%s.html' % template_name)
On Feb 24, 4:59 am, Bob Matsuoka <[email protected]> wrote:
> I've seen this referenced many times, and have probably read all of
> the responses. All I simply want to do is set the TEMPLATE_DIRS
> setting in my webapp configuration (I DO NOT -- yet -- want to run
> Django, I simply want to use the templates and configure them).
>
> Is there any way to do this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---