3
from collection import collection_api

app.register_blueprint(collection_api, url_prefix="/typing-session")
app.register_blueprint(collection_api, url_prefix="/api/dataservice/typing-session)

It is already created, how do i fix this?

1 Answer 1

5

You are trying to register the same Blueprint twice.

Change the second line to app.register_blueprint(collection_api, name="<some_unique_name>", url_prefix="/api/dataservice/typing-session)

1
  • I get the same error message now, but I am not explicitly registering things twice... it seems like something about the import machinery doing something weird
    – nmz787
    Jul 1, 2022 at 20:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.