Skip to content

UserWarning: The setup method 'route' can no longer be called on the blueprint 'auth' #5015

Answered by davidism
Balinty asked this question in Q&A
Discussion options

You must be logged in to vote

Please include a minimal reproducible example, and include the traceback with the warning. The code you've shown does not demonstrate the error.

In general, you fix this in exactly the way that the message describes. Do not call any methods that set up the blueprint, such as registering routes, error handlers, before request functions, etc. after calling register_blueprint on it.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Balinty
Comment options

@davidism
Comment options

Answer selected by davidism
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants