From a54b93b827fa681b85380824d4f30cb8286a9d92 Mon Sep 17 00:00:00 2001 From: nishanth Date: Thu, 4 Feb 2010 22:34:22 +0530 Subject: renamed templates/error.html to templates/show_msg.html and made changes accordingly in views/user. --- taskapp/views/user.py | 4 ++-- templates/error.html | 7 ------- templates/show_msg.html | 7 +++++++ 3 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 templates/error.html create mode 100644 templates/show_msg.html diff --git a/taskapp/views/user.py b/taskapp/views/user.py index 6013fe9..ee174d1 100644 --- a/taskapp/views/user.py +++ b/taskapp/views/user.py @@ -6,10 +6,10 @@ from pytask.taskapp.events.user import createUser 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 --git a/templates/error.html b/templates/error.html deleted file mode 100644 index ccc65fe..0000000 --- a/templates/error.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends 'base.html' %} -{% block content %} - {% if error_msg %} - {{error_msg}}
- click here to return to Homepage - {% endif %} -{% endblock %} diff --git a/templates/show_msg.html b/templates/show_msg.html new file mode 100644 index 0000000..1b5719a --- /dev/null +++ b/templates/show_msg.html @@ -0,0 +1,7 @@ +{% extends 'base.html' %} +{% block content %} + {% if message %} + {{message}}
+ click here to return to Homepage + {% endif %} +{% endblock %} -- cgit