flask-restless icon indicating copy to clipboard operation
flask-restless copied to clipboard

Blueprint view function name should not contain dots

Open kenfehling opened this issue 6 years ago • 4 comments

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 avatar May 27 '18 18:05 kenfehling

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

kenfehling avatar May 27 '18 21:05 kenfehling

This is due to a change made on Flask 1.0, here https://github.com/pallets/flask/pull/2450.

codingedward avatar Jun 01 '18 16:06 codingedward

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

TheRealFalcon avatar Jul 13 '18 20:07 TheRealFalcon

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

mrevutskyi avatar May 14 '20 21:05 mrevutskyi