From 57c1838f683845cb02461032063f9055637e8577 Mon Sep 17 00:00:00 2001 From: Matthew Snyder Date: Mon, 22 May 2017 14:10:08 -0700 Subject: [PATCH] Update config file loader docs --- docs/sanic/config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sanic/config.md b/docs/sanic/config.md index 5883830d..2152a16c 100644 --- a/docs/sanic/config.md +++ b/docs/sanic/config.md @@ -52,7 +52,7 @@ You could use a class or any other object as well. ### From a File -Usually you will want to load configuration from a file that is not part of the distributed application. You can load configuration from a file using `from_file(/path/to/config_file)`. However, that requires the program to know the path to the config file. So instead you can specify the location of the config file in an environment variable and tell Sanic to use that to find the config file: +Usually you will want to load configuration from a file that is not part of the distributed application. You can load configuration from a file using `from_pyfile(/path/to/config_file)`. However, that requires the program to know the path to the config file. So instead you can specify the location of the config file in an environment variable and tell Sanic to use that to find the config file: ``` app = Sanic('myapp')