Skip to content

Commit

Permalink
Create example of multiple settings whitout import (pipeline)
Browse files Browse the repository at this point in the history
  • Loading branch information
drgarcia1986 committed May 29, 2015
1 parent beeadc5 commit a3fe8e6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/pipepline/README.md
@@ -0,0 +1,9 @@
Multiple Settings
=================

Run
---

```bash
$ python app.py --settings=first_settings,second_settings
```
7 changes: 7 additions & 0 deletions examples/pipepline/app.py
@@ -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
3 changes: 3 additions & 0 deletions examples/pipepline/first_settings.py
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
ONLY_IN_FIRST = 'This settings is exclusive of first settings'
SIMPLE_CONF = 'Simple in first settings'
3 changes: 3 additions & 0 deletions examples/pipepline/second_settings.py
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
ONLY_IN_SECOND = 'This settings is exclusive of second settings'
SIMPLE_CONF = 'Simple override by second settings'

0 comments on commit a3fe8e6

Please sign in to comment.