Following a deprecated post and this answer I have set up a separate file for storing SECRET_KEY
and importing it into the main settings.py
file. However, I am getting the following error:
ImportError: No module named 'settings_secret'
settings_secret.py
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '..key'
settings.py
from settings_secret import *
and .gitignore
# Secret Settings
settings_secret.py