You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i run a postgresql container in docker,
and add this in config.env: DATABASE_URL=postgresql://postgres:docker@localhost:5432/postgres
but every time i run: python manage.py setup_dev
it will creates data-dev.sqlite
ps:the db name and password is correct,i can use the command to connect: psql -h localhost -U postgres -d postgres
The text was updated successfully, but these errors were encountered:
@tangyiming the reason it does that is that you have the app in development mode. ChangeFLASK_CONFIG=production to get the ability to connect to a db. If you want to connect to a Db in dev mode then look at lines:
i run a postgresql container in docker,
and add this in config.env:
DATABASE_URL=postgresql://postgres:docker@localhost:5432/postgres
but every time i run:
python manage.py setup_dev
it will creates data-dev.sqlite
ps:the db name and password is correct,i can use the command to connect:
psql -h localhost -U postgres -d postgres
The text was updated successfully, but these errors were encountered: