From 021e9b228aacc84528451c73a7d602956d669504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20KUBLER?= Date: Fri, 30 Jun 2017 16:16:20 +0200 Subject: [PATCH] Fixed a small error : `Sanic.__init__` doesn't have a `load_vars` parameter. It is `load_env`. --- docs/sanic/config.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sanic/config.md b/docs/sanic/config.md index 2152a16c..ab63f7c8 100644 --- a/docs/sanic/config.md +++ b/docs/sanic/config.md @@ -31,10 +31,10 @@ There are several ways how to load configuration. ### 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 -app = Sanic(load_vars=False) +app = Sanic(load_env=False) ``` ### From an Object