wait for postgres defined in django settings to be up
Project description
This command-line tool reads django settings, then tries to connect to configured postgresql server until connection succeeds. It is useful on service startup, when you want to launch migrations right after postgres database gets ready.
Installation
pip install pgwait
Usage
To wait before migrations:
pgwait && ./manage.py migrate
Specifying settings path
You can either set DJANGO_SETTINGS_MODULE environment variable, or specify settings module path in the first command-line argument.
pgwait path.to.settings
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pgwait-0.3.tar.gz
(2.2 kB
view details)
Built Distribution
pgwait-0.3-py3-none-any.whl
(4.6 kB
view details)
File details
Details for the file pgwait-0.3.tar.gz
.
File metadata
- Download URL: pgwait-0.3.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53c1e777fdfb3a1b8775dbd587c693e44e6a77f39bca7c47ad03b6d48db5dce2 |
|
MD5 | 1e0f03d6e784586970473180125ae81f |
|
BLAKE2b-256 | 731c7ffa137034139d8b13b52503ed1d1ffca1cdad41b2b28a62ff94f6047a8e |
File details
Details for the file pgwait-0.3-py3-none-any.whl
.
File metadata
- Download URL: pgwait-0.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9f80ad56303710174bf0d9ed05f7dbc1b21c8c52661068a3cb2120ac44a1631 |
|
MD5 | 208326579776efe52467bae6e55a15f0 |
|
BLAKE2b-256 | 2ef2db5928e42ab0e6e87961403e2af7aa3d4f8fa51497ee1325487443884a7e |