evorepo/main/context_processors.py
Dan McGee 47c95a2821 Get secure/unsecure checking actually working
We need a bit more, like actually having something relevant in the
RequestContext object, in order for this to all work. Instead of putting the
full request in just populate a 'secure' key with a boolean value indicating
whether the request is secure.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-22 23:16:13 -05:00

5 lines
90 B
Python

def secure(request):
return {'secure': request.is_secure()}
# vim: set ts=4 sw=4 et: