italomaia / flask-empty

An empty project skeleton / boilerplate for flask projects. Powered by CookieCutter.
667 stars 93 forks source link

main.py error in configure_blueprints #5

Closed slapers closed 10 years ago

slapers commented 11 years ago

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)):

slapers commented 11 years ago

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

italomaia commented 11 years ago

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

slapers commented 11 years ago

Thank you for the nice project !

italomaia commented 11 years ago

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

italomaia commented 10 years ago

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