changed redirect to 404 in one place and updated 404 page.
authornishanth
Thu, 15 Apr 2010 18:14:39 +0530
changeset 51 08da9bd64fca
parent 50 fd37bbece439
child 52 0cd75815847d
changed redirect to 404 in one place and updated 404 page.
reg/views.py
templates/404.html
--- 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 %}