From 41fa7050766d3ad5a57c83faacd3031fc9fa35bf Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 8 Oct 2012 13:53:00 +0200 Subject: - keep the login url in ctx --- meetingtools/context_processors.py | 3 +++ meetingtools/multiresponse.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/meetingtools/context_processors.py b/meetingtools/context_processors.py index 5bd5885..491e785 100644 --- a/meetingtools/context_processors.py +++ b/meetingtools/context_processors.py @@ -21,3 +21,6 @@ def theme(request): ctx.update(settings.THEMES['__default__']) return _w(ctx) + +def misc_urls(request): + return {'LOGIN_URL': settings.LOGIN_URL} \ No newline at end of file diff --git a/meetingtools/multiresponse.py b/meetingtools/multiresponse.py index f599323..fa46cc4 100644 --- a/meetingtools/multiresponse.py +++ b/meetingtools/multiresponse.py @@ -31,7 +31,7 @@ def make_response_dict(request,d={}): if request.user.is_authenticated(): d['user'] = request.user - ctx = RequestContext(request,d,[context_processors.theme]) + ctx = RequestContext(request,d,[context_processors.theme,context_processors.misc_urls]) print repr(ctx['theme']) return ctx -- cgit v1.1