Merge pull request #829 from Frzk/config_doc

Fixed an error : `Sanic.__init__` doesn't have a `load_vars` parameter.
This commit is contained in:
Eli Uriegas 2017-06-30 10:06:30 -07:00 committed by GitHub
commit b71fdcfc20

View File

@ -31,10 +31,10 @@ There are several ways how to load configuration.
### From environment variables. ### From environment variables.
Any variables defined with the `SANIC_` prefix will be applied to the sanic config. For example, setting `SANIC_REQUEST_TIMEOUT` will be loaded by the application automatically. You can pass the `load_vars` boolean to the Sanic constructor to override that: Any variables defined with the `SANIC_` prefix will be applied to the sanic config. For example, setting `SANIC_REQUEST_TIMEOUT` will be loaded by the application automatically. You can pass the `load_env` boolean to the Sanic constructor to override that:
```python ```python
app = Sanic(load_vars=False) app = Sanic(load_env=False)
``` ```
### From an Object ### From an Object