|
Installation
How to install django-environment.
Getting django-environmentdjango-environment is available as source code only at the moment. Click on the "Source" tab to see the svn url. Follow the instructions there on checking out the source code. Installing django-environmentRe-usable App Installation
Project specific Installation
Configuring settings.py
Make an Environment FileEnvironment files are just python files that end in ".env". They must be placed in the directory specified as the ENVPATH. django-environment will pick up each .env file found on the ENVPATH and combine them to create the composite environment. An environment file, at minimum, will contain the following code: entries = {
'foo':'bar'
}The above environment file will create an environment variable called "foo" and assign to it the string "bar". For more on environment files, see the Environment Files page. That's it for setup! From here you can move on to Using the Environment. |
Sign in to add a comment