Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create example of multiple settings whitout import (pipeline)
- Loading branch information
1 parent
beeadc5
commit a3fe8e6
Showing
4 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Multiple Settings | ||
================= | ||
|
||
Run | ||
--- | ||
|
||
```bash | ||
$ python app.py --settings=first_settings,second_settings | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
from simple_settings import settings | ||
|
||
|
||
print settings.ONLY_IN_FIRST | ||
print settings.ONLY_IN_SECOND | ||
print settings.SIMPLE_CONF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
ONLY_IN_FIRST = 'This settings is exclusive of first settings' | ||
SIMPLE_CONF = 'Simple in first settings' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
ONLY_IN_SECOND = 'This settings is exclusive of second settings' | ||
SIMPLE_CONF = 'Simple override by second settings' |