create a documentation for config path

This commit is contained in:
Jotagê Sales
2018-12-26 18:27:02 -02:00
parent e978121d58
commit 0b64fe6746
2 changed files with 19 additions and 2 deletions

View File

@@ -53,6 +53,15 @@ import myapp.default_settings
app = Sanic('myapp')
app.config.from_object(myapp.default_settings)
```
or also by path to config:
```
import myapp.default_settings
app = Sanic('myapp')
app.config.from_object('config.path.config.Class')
```
You could use a class or any other object as well.