I have a django app hosted on digitalocean with gunicorn and nginx.
I have just changed something in settings.py
.
I have taken my SECRET_KEY
and now I stored it in etc/secret_key.txt
settings.py
with open('/etc/secret_key.txt') as f:
SECRET_KEY = f.read().strip()
Do I have to restart anything in order to make the changes active?
How can I check if everything is working fine and settings.py can actually import from the txt-file?
Thx for help and stay healthy!