Skip to main content
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`

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.2.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file env.py-0.2.2.tar.gz.

File metadata

  • Download URL: env.py-0.2.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for env.py-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a6e8cd3c7a9bdc3b4db581b0e0efdc57d0888b18f0902db4c2f7ff6eaddc1596
MD5 37299e6095165ec34d9922bf2352f2a6
BLAKE2b-256 a7f63e713ef319670589b5eabe537b866b68eb7d96fd3091791ada8389b89191

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 file

0.2.1

1 file

0.2

1 file

0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page