This commit is contained in:
Ross
2021-10-04 22:28:28 +01:00
parent 6930d955a7
commit 82d4a19dbf
3 changed files with 26 additions and 0 deletions
+11
View File
@@ -368,4 +368,15 @@ def page_forbidden(request, exception):
#response.status_code = 404
return response
def server_error(request, exception):
ex = None
if request.user.is_superuser:
ex = exception
response = render(request, '500.html', {"exception": ex})
#response.status_code = 404
return response