From 47c95a2821d1fb926446d2379d4b2273af5482dc Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 22 Sep 2010 23:16:13 -0500 Subject: 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 --- main/context_processors.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 main/context_processors.py (limited to 'main/context_processors.py') diff --git a/main/context_processors.py b/main/context_processors.py new file mode 100644 index 0000000..a60d4e6 --- /dev/null +++ b/main/context_processors.py @@ -0,0 +1,4 @@ +def secure(request): + return {'secure': request.is_secure()} + +# vim: set ts=4 sw=4 et: -- cgit v1.2.3-24-g4f1b