AttributeError _CONSOLE_LOG_ENABLED - TACC/Core-CMS GitHub Wiki

Problem

An error like AttributeError: 'dict' object has no attribute '_CONSOLE_LOG_ENABLED' (Edge v87) prevents Python settings from being run to completion.

Solutions

A. If current_secrets is Empty, Then Fix Typo in secrets.py

  1. Open settings.py.
  2. Underneath the line ``, add this line of code:
    print("--> Variable current_secrets: ", current_secrets)
    
  3. Stop (i.e. bring down) the dockers.
  4. Start (i.e. bring up) the dockers.
  5. Look in log for --> Variable current_secrets: .
  6. If the value is an empty object, {}, then you probably have a typo in your secrets.py file, so:
    1. Find & Fix the typo.
    2. Repeat steps 3–5 until the result is not an empty object.
  7. 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.

⚠️ **GitHub.com Fallback** ⚠️