Skip to content

setting debug variable is unreliable #1953

@curious-broccoli

Description

@curious-broccoli

DEBUG = os.environ.get("DEBUG", False)

DEBUG will be true even if it says e.g. DEBUG=False in .env.

better would be something like DEBUG = os.environ.get("DEBUG", "False").lower() == "true"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions