Fixed a small error : Sanic.__init__ doesn't have a load_vars parameter.

It is `load_env`.
This commit is contained in:
François KUBLER 2017-06-30 16:16:20 +02:00
parent 1af343ef50
commit 021e9b228a

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