italomaia/flask-empty

main.py error in configure_blueprints

slapers opened this issue · 5 comments

Hi,

I changed the example and tried adding blueprints to it.. but when registering blueprints as described in the config.py :

BLUEPRINTS = [
'blog.views.app' # or ('blog.views.app', {'url_prefix':'/blog'})
] # each as (blueprint_instance, url_preffix)

The function for registering the blueprints (main.py:51) should handle it as a tuple instead of a dict:

-elif (isinstance(blueprint_config, dict)):
+elif (isinstance(blueprint_config, tuple)):

Actually, the issue seems solved in the src folder...but wasn't changed in the example...

Humm, I'll see to that. Thanks for the feedback.

Thank you for the nice project !

Some changes were made to fix the example. Would you kindly test if your problem persists?

Well, closing as "it seems fixed" and no further complains.