I am using Jinja2 templates for my GAE Python application. In fact, in one project there are several small applications. This is, for example, a blog and a website. So, the first for the blog, and the second for the site =). I have this folder structure:
/
/apps
/blog
/site
/templates
/blog
/site
I also have code to access the templates folder for each application. It looks like this:
template_dirs = []
template_dirs.append(os.path.join(os.path.dirname(__file__), 'templates/project'))
Of course, this does not work, as it is wrong. It returns a string as follows: database / data / home / application / MyApplication / + 1.3448460209502075158 / application / project / templates / project
, : ////MyApplication/1,348460209502075158///
, , ? , - GAE.
!