create postgres database from django settings
Project description
Installation
$ [sudo] pip install django-postgres-createdb
settings.py
INSTALLED_APPS = [
"django_postgres_createdb",
]
Commands
command | help |
---|---|
python manage.py createdb |
create postgres database |
Examples
settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': os.getenv('DB_NAME'),
'USER': os.getenv('DB_USER'),
'PASSWORD': os.getenv('DB_PASS'),
'HOST': os.getenv('DB_HOST'),
'PORT': os.getenv('DB_PORT'),
}
}
$ python manage.py createdb
$ python manage.py createdb "default"
Related projects
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
Close
Hashes for django-postgres-createdb-2019.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4332cbe442559ce7e54d7f039dddf9ec8dc645f9398e7561df2ed5725dc7dc84 |
|
MD5 | 8c1f805368f24184ebc8da8325954272 |
|
BLAKE2b-256 | 0899686b3c0dd4ebcb7fcea7588e3e4c4b4c20891b0464416c38a9a6103ba434 |