Permalink
Browse files

Remove unnecessary 'try' line, and added 500.html template.

  • Loading branch information...
mattdeboard committed Nov 6, 2011
1 parent 1bfd998 commit b636ae621be4e6427d3076b2793d5d3a99768892
Showing with 8 additions and 3 deletions.
  1. +1 −1 yuk/processors.py
  2. +6 −0 yuk/templates/500.html
  3. +1 −2 yuk/views.py
View
@@ -23,4 +23,4 @@ def text_area_processor(request):
return {'text_areas':['url_desc', 'notes', 'quote']}
def search_processor(request):
- return {'search_form': MySearchForm()}
+ return {'search_form': MySearchForm()}
View
@@ -0,0 +1,6 @@
+{% extends 'base.html' %}
+{% block auth_action %}
+{% url yuk.views.redir_to_profile as the_url %}
+<h1 class="bye" align=center>Whoops!</h1>
+<div id='logout_message' align=center>Looks like something went wrong here. We'll look into it.<a href="{{ the_url }}">Let's try again.</a></div>
+{% endblock %}
View
@@ -226,8 +226,7 @@ def tag_detail(request, uname, tag):
@login_required
def edit_item(request, uname, item_id):
- try:
- item = get_object_or_404(Item, id=item_id, user=request.user)
+ item = get_object_or_404(Item, id=item_id, user=request.user)
if item.item_type == "quote":
itemform = QuoteForm

0 comments on commit b636ae6

Please sign in to comment.