diff options
author | nishanth | 2010-02-04 22:34:22 +0530 |
---|---|---|
committer | nishanth | 2010-02-04 22:34:22 +0530 |
commit | a54b93b827fa681b85380824d4f30cb8286a9d92 (patch) | |
tree | 6c9cfce47b29e518a5d0b40f28e5a76b82625ba2 | |
parent | 2065926b78e6e95e9e8dc4513eb6578cdba06c45 (diff) | |
download | pytask-a54b93b827fa681b85380824d4f30cb8286a9d92.tar.gz pytask-a54b93b827fa681b85380824d4f30cb8286a9d92.tar.bz2 pytask-a54b93b827fa681b85380824d4f30cb8286a9d92.zip |
renamed templates/error.html to templates/show_msg.html and made changes accordingly in views/user.
-rw-r--r-- | taskapp/views/user.py | 4 | ||||
-rw-r--r-- | templates/show_msg.html (renamed from templates/error.html) | 4 |
2 files changed, 4 insertions, 4 deletions
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/show_msg.html index ccc65fe..1b5719a 100644 --- a/templates/error.html +++ b/templates/show_msg.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% block content %} - {% if error_msg %} - {{error_msg}}<br /> + {% if message %} + {{message}}<br /> <a href="/">click here</a> to return to Homepage {% endif %} {% endblock %} |