I have the following .env file:
DATABASE_URL='postgres://localhost:5432/myapp_development'
When I run dotenv get DATABASE_URL this is what I get:
DATABASE_URL="'postgres://localhost:5432/simulator_development'"
When I try to use this with dj-database-url it is failing to parse the DATABASE_URL environment variable as it is.
It seems using single quotes in the .env file is causing this.
It would be nice if this were documented somewhere if the behavior is intended
I spent quite a bit of time trying to figure out where the error was.
Thanks 😃
I have the following
.envfile:When I run
dotenv get DATABASE_URLthis is what I get:DATABASE_URL="'postgres://localhost:5432/simulator_development'"When I try to use this with dj-database-url it is failing to parse the
DATABASE_URLenvironment variable as it is.It seems using single quotes in the
.envfile is causing this.It would be nice if this were documented somewhere if the behavior is intended
I spent quite a bit of time trying to figure out where the error was.
Thanks 😃