[Answered ]-How to simulate HTTP error 500 in django?

2👍

Try editing the urls.py as follows:

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^500/$', 'django.views.defaults.server_error'),
    )

Then try accessing the page as follows:

http://localhost/500

http://yoursite.com/500

👤Murali

Leave a comment