-
Notifications
You must be signed in to change notification settings - Fork 1
AttributeError _CONSOLE_LOG_ENABLED
W. Bomar edited this page Mar 17, 2021
·
1 revision
An error like AttributeError: 'dict' object has no attribute '_CONSOLE_LOG_ENABLED'
(Edge v87) prevents Python settings from being run to completion.
- Open
settings.py
. - Underneath the line ``, add this line of code:
print("--> Variable current_secrets: ", current_secrets)
- Stop (i.e. bring
down
) the dockers. - Start (i.e. bring
up
) the dockers. - Look in log for
--> Variable current_secrets:
. - If the value is an empty object,
{}
, then you probably have a typo in yoursecrets.py
file, so:- Find & Fix the typo.
- Repeat steps 3–5 until the result is not an empty object.
- Once this error is resolved, delete the line added in step 2.
Explanation
Because _CONSOLE_LOG_ENABLED
is the first secret expected to exist, the error calls out that secret. But, the issue is actually that the current_secrets
are empty, so settings.py
will not find any secret it is told to access. The current_secrets
is empty because settings.py
does not judge whether you have an empty secrets file. Should it? If you think so, please create an issue.
TACC ACI WMA Core-CMS Project Documentation