diff --git a/examples/simple/app.py b/examples/simple/app.py index 2cd51f4..4c03aa6 100644 --- a/examples/simple/app.py +++ b/examples/simple/app.py @@ -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 diff --git a/examples/simple/app_without_env_or_args.py b/examples/simple/app_without_env_or_args.py new file mode 100644 index 0000000..358c33c --- /dev/null +++ b/examples/simple/app_without_env_or_args.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +from simple_settings import LazySettings + + +settings = LazySettings('project_settings') +print settings.SIMPLE_CONF