Initial commit: rdgen with GitHub/Gitea dual build backend
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
"""统一的中文错误页面。"""
|
||||
from django.shortcuts import render
|
||||
|
||||
|
||||
def handler403(request, exception=None):
|
||||
return render(request, '403.html', status=403)
|
||||
|
||||
|
||||
def handler404(request, exception=None):
|
||||
return render(request, '404.html', status=404)
|
||||
|
||||
|
||||
def handler500(request):
|
||||
return render(request, '500.html', status=500)
|
||||
Reference in New Issue
Block a user