Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 + 500 error handlers (fault) #8

Closed
TravelTimN opened this issue May 26, 2019 · 2 comments
Closed

404 + 500 error handlers (fault) #8

TravelTimN opened this issue May 26, 2019 · 2 comments

Comments

@TravelTimN
Copy link
Owner

For some reason in production mode, the 404 and 500 error pages aren't loading correctly ever since Flask-Blueprints were incorporated. Will come back and work on this at a later time.

@ignatiusukwuoma

@ignatiusukwuoma
Copy link

@TravelTimN
Copy link
Owner Author

I found this to work for the problem I'm having. It's working as intended now. https://stackoverflow.com/a/39770599

@errors.route("/<path:path>")
def path_error(path):
        return render_template("errors/404.html"), 404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants