Skip to content

Instantly share code, notes, and snippets.

@caio-nas
Created June 4, 2014 13:38
Show Gist options
  • Save caio-nas/7129822f2be05a696d26 to your computer and use it in GitHub Desktop.
Save caio-nas/7129822f2be05a696d26 to your computer and use it in GitHub Desktop.
# Import a module / component using its blueprint handler variable
from blueprints.hello import blueprint as hello
from blueprints.web import blueprint as web
# Register blueprint(s)
app_context.register_blueprint(hello, url_prefix='/hello')
app_context.register_blueprint(web)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment