Skip to content

Instantly share code, notes, and snippets.

@myusuf3
Created September 28, 2011 18:33
Show Gist options
  • Save myusuf3/1248799 to your computer and use it in GitHub Desktop.
Save myusuf3/1248799 to your computer and use it in GitHub Desktop.
# if you are having problem with your 500 pages not rendering properly.
from django.conf.urls.defaults import *
#bad python practice but makes this easier
handler500 = 'webcomic.views.server_error'
# in views!
def server_error(request):
return render(request, '500.html')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment