Skip to main content

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.


pip install pgwait


To wait before migrations:

pgwait && ./ migrate

Specifying settings path

You can either set DJANGO_SETTINGS_MODULE environment variable, or specify settings module path in the first command-line argument.


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pgwait, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size pgwait-0.3-py3-none-any.whl (4.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pgwait-0.3.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page