Skip to content

Set undefined env variables using CLI arguments #363

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

TheAfroOfDoom
Copy link

Both DJANGO_SETTINGS_MODULE and DJANGO_CONFIGURATION are required for django.configurations.importer to install, else it throws an exception.
If the importer is not installed, django.setup() fails on configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) when trying to access uninitialized settings.

fixes #309 (#309 (comment))
fixes #325
might relate to #362

TheAfroOfDoom and others added 2 commits June 3, 2022 21:48
Both `DJANGO_SETTINGS_MODULE` and `DJANGO_CONFIGURATION` are required for `django.configurations.importer` to install, else it throws an exception.
If the `importer` is not installed, `django.setup()` fails on `configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)` when trying to access uninitialized settings.

fixes pylint-dev#309 (pylint-dev#309 (comment))
fixes pylint-dev#325
might relate to pylint-dev#362
@coveralls
Copy link

Coverage Status

Coverage decreased (-86.06%) to 0.0% when pulling ec3bcf6 on TheAfroOfDoom:master into 6c1e67e on PyCQA:master.

@carlio carlio force-pushed the master branch 5 times, most recently from aa6c7ee to 054b49a Compare May 15, 2023 03:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure to import settings? ImproperlyConfigured exception about LOGGING_CONFIG
2 participants