Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Wrong parsing of env variables in single quotes #35

Copy link
Copy link
@kevgathuku

Description

@kevgathuku
Issue body actions

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 😃

Flimm and rohullaa

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.