Skip to content

How to access Django settings? #3

@nedbat

Description

@nedbat

When using other coverage commands (like coverage html), the Django settings may not be set properly. For example, these commands:

coverage run manage.py test ; coverage html

manage.py will set the settings properly, but coverage html won't know where they are.
Should we require the user to set the DJANGO_SETTINGS_MODULE? Should we make it so the settings aren't required?

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