Created
September 28, 2011 18:33
-
-
Save myusuf3/1248799 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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