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

Blueprint view function name should not contain dots #686

Open
kenfehling opened this issue May 27, 2018 · 4 comments
Open

Blueprint view function name should not contain dots #686

kenfehling opened this issue May 27, 2018 · 4 comments

Comments

@kenfehling
Copy link

Using version 1.0.0b1 when trying to call create_api_blueprint I get

File "/opt/conda/lib/python3.6/site-packages/flask_restless/manager.py", line 715, in create_api_blueprint
view_func=relationship_api_view)
File "/opt/conda/lib/python3.6/site-packages/flask/blueprints.py", line 206, in add_url_rule
assert '.' not in view_func.name, "Blueprint view function name should not contain dots"
AssertionError: Blueprint view function name should not contain dots

@kenfehling
Copy link
Author

kenfehling commented May 27, 2018

Update: When I force my version of flask to be 0.12.4 or lower this error goes away. It must be some incompatibility with Flask 1.0

@codingedward
Copy link

codingedward commented Jun 1, 2018

This is due to a change made on Flask 1.0, here pallets/flask#2450.

@TheRealFalcon
Copy link

Are there any workarounds, or is 1.0.0b1 just currently not compatible with flask 1.0?

@mrevutskyi
Copy link

Hi, there is a fork project Flask-Restless-NG that has this issue fixed

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

4 participants