Re: (yet another) Custom templatetag raising KeyError when DEBUG=False

2014-12-27 Thread Alexandre Provencio
>> File >> "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/loader_tags.py", >> line 123, in render >> return compiled_parent._render(context) >> File >> "/home/xand/.virtualenvs/django-foo/local/l

Re: (yet another) Custom templatetag raising KeyError when DEBUG=False

2014-12-26 Thread Collin Anderson
gt; line 840, in render > bit = self.render_node(node, context) > File > "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/debug.py", > > > line 78, in render_node > return node.render(context) > File > "

Re: (yet another) Custom templatetag raising KeyError when DEBUG=False

2014-12-23 Thread Alexandre Provencio
xand/Documentos/src/Projetos/django-foo/app/templatetags/helper_tags.py", line 14, in change_lang path = context['request'].path File "/home/xand/.virtualenvs/django-foo/local/lib/python2.7/site-packages/django/template/context.py", line 56, in __getitem__ raise KeyError(key) K

Re: (yet another) Custom templatetag raising KeyError when DEBUG=False

2014-12-22 Thread Collin Anderson
on stackoverflow > > http://stackoverflow.com/questions/27503581/yet-another-custom-templatetag-raising-keyerror-when-debug-false > > > I'm trying to use a custom templatetag (this one actually: > https://djangosnippets.org/snippets/2875/), on my project which works > fine a

(yet another) Custom templatetag raising KeyError when DEBUG=False

2014-12-20 Thread Alexandre Provencio
Hello all, this is a cross post i made on stackoverflow http://stackoverflow.com/questions/27503581/yet-another-custom-templatetag-raising-keyerror-when-debug-false I'm trying to use a custom templatetag (this one actually: https://djangosnippets.org/snippets/2875/), on my project which works