Skip to content

Wrong parsing of env variables in single quotes #35

@kevgathuku

Description

@kevgathuku

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 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions