initialize postgres for django project
This command-line tool reads django settings, then connects to configured postgresql server as superuser, and tries to create the database and user with password, according to the django settings.
pip install pginit
You can either set DJANGO_SETTINGS_MODULE environment variable, or specify settings module path in the first command-line argument.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.