diff options
author | Madhusudan.C.S | 2011-07-19 00:03:48 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2011-07-19 00:03:48 +0530 |
commit | e6bbd1ee1d49cb817fcad74cecf66a1eedff037b (patch) | |
tree | b43dddab7605b8df230f9c7171b06ad5031274ec | |
parent | 7c767ae45d1ac9ee78d3e8e40c766e8a9c5d4867 (diff) | |
download | pytask-e6bbd1ee1d49cb817fcad74cecf66a1eedff037b.tar.gz pytask-e6bbd1ee1d49cb817fcad74cecf66a1eedff037b.tar.bz2 pytask-e6bbd1ee1d49cb817fcad74cecf66a1eedff037b.zip |
Make sure we pass RequestContext to templates all the time!
The negligence to pass RequestContext here caused us a lot of headache
while trying to login from home page. It almost took 5 hours of 2
developers time (Parth and myself) time to figure out this simple
problem and lot of hacking on CSRF middleware.
-rw-r--r-- | pytask/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pytask/views.py b/pytask/views.py index 948c29a..cddab0f 100644 --- a/pytask/views.py +++ b/pytask/views.py @@ -49,7 +49,7 @@ def home_page(request): user = request.user if not user.is_authenticated(): - return render_to_response("index.html") + return render_to_response("index.html", RequestContext(request, {})) profile = user.get_profile() |