#admin/views.py
from django.shortcuts import render_to_response
...
def handler500(request, *args, **kwargs):
response = render_to_response('admin/500.html')
response.status_code = 500
return response
def handler404(request, *args, **kwargs):
response = render_to_response('admin/404.html')
response.status_code = 404
return response
...
#admin/urls.py
...
handler404 = 'admin.views.handler404'
handler500 = 'admin.views.handler500'
...