How Flask Blueprint Access Flask Application?

  • Posted on: 6 March 2015
  • By: oon
Flask current_app

using current_app

from flask import current_app

 

[1]http://flask.pocoo.org/docs/0.11/patterns/appfactories/

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.