I'm trying to deploy my webapp to Webfaction, the basic example is working correctly, I got a TemplateNotFound in a template that extends a basic template using Jinja2. Here is my project tree:
/webapps
/myapp
development.ini
production.ini
/bin
/theapp
/Project
setup.py
/project
__init__.py
views.py
/templates
base.jinja2
home.jinja2
/static
init.py
config.include('pyramid_jinja2')
config.add_jinja2_search_path("templates")
home.jinja2
{% extends "templates/base.jinja2" %}
To be more clear, the project works locally I know it's something with the template path, I'm not sure how to set it, I tried many different ways, anyways this is the traceback:
File "..webapps/myapp/myapp/Project/project/templates/home.jinja2", line 1, in top-level template code
{% extends "templates/base.jinja2" %}
File "..webapps/myapp/lib/python2.7/site-packages/pyramid_jinja2-1.8-py2.7.egg/pyramid_jinja2/__init__.py", line 193, in get_source
raise TemplateNotFound(name=ex.name, message=message)
TemplateNotFound: templates/base.jinja2; asset=..webapps/myapp/lib/python2.7/site-packages/Project-0.0-py2.7.egg/project/templates/base.jinja2; searchpath=['..webapps/myapp/lib/python2.7/site-packages/Project-0.0-py2.7.egg/project/templates']
Please help me set the correct path to templates, if that is my mistake.
asked
04 Oct '13, 01:11
PepperoniPizza
13●4●7
accept rate:
0%