Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Krish Moodbidri
self-reg-form
Commits
2e1b4ac3
Commit
2e1b4ac3
authored
Mar 11, 2021
by
Krish Moodbidri
Browse files
added app route error page
parent
431f54d5
Pipeline
#4269
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/__init__.py
View file @
2e1b4ac3
...
...
@@ -56,6 +56,11 @@ def create_app(config_name):
def
error
():
return
'ERROR: '
@
app
.
route
(
'/error_account'
)
def
error_account_create
():
return
render_template
(
'errors/error.html'
,
title
=
'account creation failed'
)
# misc page error catching
@
app
.
errorhandler
(
403
)
def
forbidden
(
error
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment