# HG changeset patch
# User nishanth
# Date 1265303062 -19800
# Node ID ec7b1751c161c7876289b10a1dfba6a29e1938dc
# Parent c52f7cde986182b9850a732d5c246de7f038d51b
renamed templates/error.html to templates/show_msg.html and made changes accordingly in views/user.
diff -r c52f7cde9861 -r ec7b1751c161 taskapp/views/user.py
--- a/taskapp/views/user.py Thu Feb 04 22:30:30 2010 +0530
+++ b/taskapp/views/user.py Thu Feb 04 22:34:22 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 c52f7cde9861 -r ec7b1751c161 templates/error.html
--- a/templates/error.html Thu Feb 04 22:30:30 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 c52f7cde9861 -r ec7b1751c161 templates/show_msg.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/show_msg.html Thu Feb 04 22:34:22 2010 +0530
@@ -0,0 +1,7 @@
+{% extends 'base.html' %}
+{% block content %}
+ {% if message %}
+ {{message}}
+ click here to return to Homepage
+ {% endif %}
+{% endblock %}