Easily manage your python application settings for different environments
Project description
env.py
======
Easily manage your python application settings for different environments
Usage:
------
Consider following file structure somewhere in your python application:
```
- app
- settings.py
- local_env.py # required by env.py
- local_settings.py
- dev_settings.py
- prod_settings.py
- prodstage_settings.py
- test_settings.py
```
What `env.py` does is, it allows you to define different environment custom settings
inside files named `$env_settings.py`. Then, inside `local_env.py` define
current environment like `ENV='prod'`.
At the top or at the bottom of `settings.py` based upon how you use `env.py`, use as:
`from env import *`
This will configure your application for your current `ENV` custom settings along with common `settings.py`
======
Easily manage your python application settings for different environments
Usage:
------
Consider following file structure somewhere in your python application:
```
- app
- settings.py
- local_env.py # required by env.py
- local_settings.py
- dev_settings.py
- prod_settings.py
- prodstage_settings.py
- test_settings.py
```
What `env.py` does is, it allows you to define different environment custom settings
inside files named `$env_settings.py`. Then, inside `local_env.py` define
current environment like `ENV='prod'`.
At the top or at the bottom of `settings.py` based upon how you use `env.py`, use as:
`from env import *`
This will configure your application for your current `ENV` custom settings along with common `settings.py`
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
env.py-0.2.tar.gz
(3.0 kB
view details)
File details
Details for the file env.py-0.2.tar.gz.
File metadata
- Download URL: env.py-0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7499ef59987fe509fd0fd20cc2d6cb60edad8928a0a76085082d79fe8255b8e
|
|
| MD5 |
a9e7583a37f3942fb7d7d5014901cce4
|
|
| BLAKE2b-256 |
ee5b67ed498ce9b3d19063ccf1323f362dc8f2041c3bbccce7774ea6f1d80ec8
|