1. Michael Elsdörfer
  2. Flask-Script


danjac  committed fb74c17

doc change

  • Participants
  • Parent commits 8e7623d
  • Branches default

Comments (0)

Files changed (1)

File docs/index.rst

View file
         def run(self):
             print "hello world"
+**Note:** the previous to version 0.3, the ``run`` method took a Flask instance as a first argument. However
+this was changed in 0.3, as the app instance is available as **current_app** in a Flask request context 
+(which is available to your script when it is run).
 Now the command needs to be added to our ``Manager`` instance, like the one created above::
     manager.add_command('hello', Hello())