Custom 403 Page
Added custom 403 page. Change-Id:Id5ccb3835748c9a627a4a27b9332abf1f45a1648
This commit is contained in:
parent
72f4ec9269
commit
673765cb75
|
@ -5,6 +5,10 @@ from . import main
|
|||
def page_not_found(e):
|
||||
return render_template('404.html'), 404
|
||||
|
||||
@main.app_errorhandler(403)
|
||||
def internal_server_error(e):
|
||||
return render_template('403.html'), 403
|
||||
|
||||
@main.app_errorhandler(500)
|
||||
def internal_server_error(e):
|
||||
return render_template('500.html'), 500
|
|
@ -0,0 +1,13 @@
|
|||
{% extends "adminlte/base_without_nav.html" %}
|
||||
|
||||
{% block title %}403 ERROR{% endblock %}
|
||||
{% block description %}dash-stack - Permission Error{% endblock %}
|
||||
{% block bodytag %}login-page{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<div class="page-header">
|
||||
<h1>You do not have permission to access this page.</h1>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue