Opened 6 years ago
Last modified 6 years ago
#29906 closed Bug
`isinstance(django_settings, type)` triggers ImproperlyConfigured, although settings are not really accessed — at Initial Version
Reported by: | Daniel Hahler | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | 2.1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Checking if django.conf.settings
is a class should not trigger an exception, but the following code triggers ImproperlyConfigured already:
`
from django.conf import settings as django_settings
isinstance(django_settings, type)
`
Note:
See TracTickets
for help on using tickets.