# HG changeset patch
# User nishanth
# Date 1264837211 -19800
# Node ID 4da58abdf6ff87c92d0383e585009be91096ac7b
# Parent c823b42970a49ed9357b965fe8094192e218fc45
renamed templates/error.html to templates/show_msg.html and made changes accordingly in views/user.
diff -r c823b42970a4 -r 4da58abdf6ff pytask/taskapp/views/user.py
--- a/pytask/taskapp/views/user.py Sat Jan 30 13:04:58 2010 +0530
+++ b/pytask/taskapp/views/user.py Sat Jan 30 13:10:11 2010 +0530
@@ -6,10 +6,10 @@
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.models import User
-def show_msg(error_msg):
+def show_msg(message):
""" simply redirect to homepage """
- return render_to_response('error.html',{'error_msg':error_msg})
+ return render_to_response('show_msg.html',{'message':message})
def homepage(request):
""" check for authentication and display accordingly. """
diff -r c823b42970a4 -r 4da58abdf6ff pytask/templates/error.html
--- a/pytask/templates/error.html Sat Jan 30 13:04:58 2010 +0530
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-{% extends 'base.html' %}
-{% block content %}
- {% if error_msg %}
- {{error_msg}}
- click here to return to Homepage
- {% endif %}
-{% endblock %}
diff -r c823b42970a4 -r 4da58abdf6ff pytask/templates/show_msg.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/templates/show_msg.html Sat Jan 30 13:10:11 2010 +0530
@@ -0,0 +1,7 @@
+{% extends 'base.html' %}
+{% block content %}
+ {% if message %}
+ {{message}}
+ click here to return to Homepage
+ {% endif %}
+{% endblock %}