>> 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
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
> "
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
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
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
5 matches
Mail list logo