changed redirect to 404 in one place and updated 404 page.
--- 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.
--- 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.
-<a href="/reg">Click here</a> to return to home page.
+404 Error<br />
+The page you requested does not exist<br />
{% endblock %}