django database connection now uses .env

This commit is contained in:
2024-08-16 19:00:00 +02:00
parent 3d853243a1
commit 64b184adff
4 changed files with 23 additions and 5 deletions

View File

@ -5,3 +5,4 @@ createdb $DB_NAME
psql -c "CREATE USER $DB_USERNAME WITH PASSWORD '$DB_PASSWORD'"
psql -c "GRANT ALL PRIVILEGES ON database $DB_NAME TO $DB_USERNAME"
EOF
service postgresql stop