Permalink
Browse files

added blog settings to context of server_error handling view

  • Loading branch information...
1 parent f306f0c commit 0e70dce325d056263ada738c62344629dba55901 @montylounge montylounge committed Sep 10, 2009
Showing with 8 additions and 9 deletions.
  1. +5 −6 mingus/core/views.py
  2. +3 −3 mingus/local_settings.py.template
View
@@ -50,9 +50,12 @@ def server_error(request, template_name='500.html'):
'''Handles displaying 500 server error page along with application MEDIA.'''
t = loader.get_template(template_name)
+ blog_settings = Settings.get_current()
+
return http.HttpResponseServerError(t.render(Context({
"MEDIA_URL": settings.MEDIA_URL,
"STATIC_URL": settings.STATIC_URL,
+ "BLOG_SETTINGS": blog_settings,
})))
def springsteen_firehose(request):
@@ -159,12 +162,8 @@ def quote_detail(request, template_name='quotes/quote_detail.html', **kwargs):
def oops(request):
- '''
- An view that exists soley to provide an example of using django-db-log.
-
- View log: /admin/djangodblog/error/
- '''
- doh = 1/0
+ '''An view that exists soley to provide an example of using django-db-log.'''
+ foo = 1/0
@check_honeypot
@@ -1,10 +1,10 @@
LOCAL_DEV = True
-DEBUG = True
+DEBUG = True
TEMPLATE_DEBUG = DEBUG
#sorl-thumbnail
-THUMBNAIL_DEBUG = True
+THUMBNAIL_DEBUG = True
#django-contact-form
DEFAULT_FROM_EMAIL = 'contactform@foo'
@@ -53,5 +53,5 @@ DEBUG_TOOLBAR_PANELS = (
MARKUP_CHOICES = (
'none',
'markdown',
- 'textile',
+ 'textile',
)

0 comments on commit 0e70dce

Please sign in to comment.