summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--taskapp/views/user.py4
-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 %}