herokal-settings
Provides crosswalk between a Foreman-style .env file and your django local settings.
Installation & Usage
Add to your django project’s requirements.txt:
herokal-settings
Add herokal to INSTALLED_APPS
Install the heroku-config plugin:
heroku plugins:install git://github.com/ddolar/heroku-config.git
Run the management command to export your local_settings.py:
./manage.py exportenv
At the bottom of your settings.py, instead of:
from local_settings import *
Use herokal.settings:
from herokal.settings import *
Now, when you run ./manage.py runserver, your local_settings.py will be loaded, but when you run foreman start, your .env will be used.
Options
The exportenv command takes a few optional flags:
--settings-module The name of the settings module to export.
Default is 'local_settings'
--include-databases Whether or not to serialize database
connections into the .env file.
Default is false
--outfile The name of the file to export your
local settings to.
Default is '.env'
Changelog
0.0.1
Initial release
Metadata
Release files for herokal-settings 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| herokal-settings-0.0.1.tar.gz | 3.1 kB | Without provenance | Details for herokal-settings-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| herokal_settings-0.0.1-py2.7.egg | Legacy Egg format | - | - | Details for herokal_settings-0.0.1-py2.7.egg |
Total release size: 10.1 kB
Release files / herokal-settings-0.0.1.tar.gz
| Download URL | herokal-settings-0.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f244378d28d641928662257fa34e8cb4f4462790e74817195c820150b782f10
|
|
BLAKE2b-256 checksum How to use checksums |
9e2bcab7990cde7d0ac99af5ac092e58072d6c94004b87eb12ad544153f5010c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / herokal_settings-0.0.1-py2.7.egg
| Download URL | herokal_settings-0.0.1-py2.7.egg |
|---|---|
| Size | 7.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
cbb8a9d5793a476a1a8fe8f1ff093e96f2eb228f8f7e8dbd17114c6857c06695
|
|
BLAKE2b-256 checksum How to use checksums |
f1a2da4d4514c5782a65ed3e6a2dcfef8cc24fb4dee72241260d41e6ef49948c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for herokal-settings 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.