# HG changeset patch
# User nishanth
# Date 1271335479 -19800
# Node ID 08da9bd64fca6a2d4944a2346f377b9cbb3179e7
# Parent fd37bbece439fabae3e64c40cc042e9d4e8e06e9
changed redirect to 404 in one place and updated 404 page.
diff -r fd37bbece439 -r 08da9bd64fca reg/views.py
--- a/reg/views.py Thu Apr 15 17:03:16 2010 +0530
+++ b/reg/views.py Thu Apr 15 18:14:39 2010 +0530
@@ -178,7 +178,7 @@
form = reg_forms.EventCreateForm()
return render_to_response('event_create.html', {'user':user, 'form':form})
else:
- return redirect('/reg')
+ raise Http404
def view_event(request, key):
""" get the event by its key and display it.
diff -r fd37bbece439 -r 08da9bd64fca templates/404.html
--- a/templates/404.html Thu Apr 15 17:03:16 2010 +0530
+++ b/templates/404.html Thu Apr 15 18:14:39 2010 +0530
@@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block content %}
-The page you requested does not exist.
-Click here to return to home page.
+404 Error
+The page you requested does not exist
{% endblock %}