Skip to content

Commit

Permalink
Note on shortcut for set_basic_params
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Jul 25, 2017
1 parent 35237d2 commit a9f0535
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ Let's configure uWSGI to use Emperor Broodlord mode as described here_.
Section().
master_process.set_basic_params(enable=True).
workers.set_basic_params(count=1).
python.set_wsgi_params(module='werkzeug.testapp:test_app').
logging.set_basic_params(no_requests=True))
logging.set_basic_params(no_requests=True).
python.set_wsgi_params(module='werkzeug.testapp:test_app'))
# NOTE. There is a shortcut for ``set_basic_params`` methods:
# Instead of `master_process.set_basic_params(enable=True)`
# you can say plain `master_process(enable=True)`, yet
# in than case you won't get any arg hints from you IDE.
# Now we add two sections based on common parameters into our configuration:
Configuration([
Expand Down

0 comments on commit a9f0535

Please sign in to comment.