Skip to content

Commit

Permalink
add example of use LazySettings directly
Browse files Browse the repository at this point in the history
  • Loading branch information
drgarcia1986 committed Apr 8, 2016
1 parent a9b2acb commit 7931072
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
from simple_settings import settings


os.environ.setdefault('settings', 'project_settings')
os.environ.setdefault('SIMPLE_SETTINGS', 'project_settings')
print settings.SIMPLE_CONF
6 changes: 6 additions & 0 deletions examples/simple/app_without_env_or_args.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
from simple_settings import LazySettings


settings = LazySettings('project_settings')
print settings.SIMPLE_CONF

0 comments on commit 7931072

Please sign in to comment.