"DJANGO.CORE.CONTEXT_PROCESSORS.REQUEST If TEMPLATE_CONTEXT_PROCESSORS contains this processor, every RequestContext will contain a variable request, which is the current HttpRequest. Note that this processor is not enabled by default; you'll have to activate it. " from this page
http://docs.djangoproject.com/en/dev/ref/templates/api/ But i didn't find how to activate it Here is my question http://stackoverflow.com/questions/2160261/access-request-in-django-custom-template-tags after i followed the answer i still got errors TemplateSyntaxError at / Caught an exception while rendering: 'request' Original Traceback (most recent call last): File "C: \Python25\lib\site-packages\django\template\debug.py", line 71, in render_node result = node.render(context) File "C:\Python25\lib\site- packages\django\template__init__.py", line 936, in render dict = func(*args) File "c:\...\myapp_extras.py", line 7, in login request = context['request'] File "C:\Python25\lib\site-packages\django\template \context.py", line 44, in getitem raise KeyError(key) KeyError: 'request' tho code causing problem is request = context['request'] Thanks for any help! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.