diff --git a/.gitignore b/.gitignore index 6043f78a..4cd46810 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ develop-eggs tmp build dist + +docs/_build diff --git a/README.rst b/README.rst index 535a7eb0..79bf59f3 100644 --- a/README.rst +++ b/README.rst @@ -55,6 +55,12 @@ After:: SECRET_KEY = env('SECRET_KEY') # Raises ImproperlyConfigured exception if SECRET_KEY not in os.environ +How to install +-------------- + +:: + $ pip install django-environ + DevMode ------- @@ -91,6 +97,10 @@ Tests Changelog --------- +=== 0.2.1 (2013-04-19) === + + * environ/environ.py: Env.__call__ now uses Env.get_value instance method + === 0.2 (2013-04-16) === * environ/environ.py, environ/test.py, environ/test_env.txt: add advanced diff --git a/docs/index.rst b/docs/index.rst index bfe04a34..ddd86b22 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -3,6 +3,18 @@ Welcome to Django-environ's documentation! .. automodule:: environ.environ +This module is a merge of: + +* https://github.com/rconradharris/envparse +* https://github.com/kennethreitz/dj-database-url +* https://github.com/nickstenning/honcho + +and inspired by: + +* http://www.12factor.net/ +* http://www.wellfireinteractive.com/blog/easier-12-factor-django/ +* https://django.2scoops.org (book) + This is your `settings.py` file before you have installed **django-environ**:: import os @@ -56,6 +68,11 @@ After:: SECRET_KEY = env('SECRET_KEY') # Raises ImproperlyConfigured exception if SECRET_KEY not in os.environ +How to install +-------------- +:: + + pip install django-environ DevMode ------- diff --git a/environ/environ.py b/environ/environ.py index 3da94ccd..37ab8992 100644 --- a/environ/environ.py +++ b/environ/environ.py @@ -1,19 +1,6 @@ """ Django-environ allows you to utilize 12factor inspired environment variables to configure your Django application. - -This module is a merge of: - -* https://github.com/rconradharris/envparse -* https://github.com/kennethreitz/dj-database-url -* https://github.com/nickstenning/honcho - -and inspired by: - -* http://www.12factor.net/ -* http://www.wellfireinteractive.com/blog/easier-12-factor-django/ -* https://django.2scoops.org (book) - """ import os import re @@ -35,7 +22,7 @@ class ImproperlyConfigured(Exception): __author__ = 'joke2k' -__version__ = (0, 2) +__version__ = (0, 2, 1) class Env(object):