pythonindia / pyconindia2012

PyCon India 2012 & 2013 website
http://in.pycon.org/2013/
17 stars 10 forks source link

Getting "Unknown tag 'cache'.." error #27

Closed naiquevin closed 11 years ago

naiquevin commented 11 years ago

I am trying to setup the code locally (Python 2.7.3 on Ubuntu 12.04) and getting the following error

Traceback (most recent call last):
  File "/home/vineet/python/webapps/pyconindia2012/local/lib/python2.7/site-packages/flask/app.py", line 1701, in __call__
    return self.wsgi_app(environ, start_response)
.....
.....
File "/home/vineet/python/webapps/pyconindia2012/local/lib/python2.7/site-packages/baseframe/templates/baseframe/components.html", line 37, in template
    {%- cache 60, 'networkbar-links-html', siteid or '' %}
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'cache'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.

The corresponding code is from the components.html file from baseframe

    {%- cache 60, 'networkbar-links-html', siteid or '' %}
      <ul id="hg-barlinks">
        {{ networkbar_inner(siteid, links, toplevel=true, appurl=request.url_root) }}
      </ul>
    {%- endcache %}

I have Flask-Cache (ver 0.12) installed in the virtualenv. So far the only change I have made is changing the funnel submodule url from git://github.com/ipss/funnel.git to git://github.com/pythonindia/funnel since ipss/funnel.git no longer exists on github.

What am I missing? Kindly help.

ghost commented 8 years ago

@anandology I just encountered a similar issue in our repo and came searching through the interwebs on this. Would have been helpful to know if you resolved this issue in some way before closing it.