I manage to replace the SECRET_KEY in my project. Put it into a .env file and replace it in the settings.py file with:
from decouple import config SECRET_KEY = config("SECRET_KEY") # this is to replace the secret key you cut away before
What do I have to put into the README file as instructions if someone will pull the repository and install it on her/his computer? Do they need to do something or is the SECRET_KEY generated automatically? (Perhaps I should do this to find out by myself, to pull a repository of someone else and see what is happening. Just in this moment when I wrote this post I got the idea.) I would be happy if someone could answer me that please.
Are these instructions necessary?
$ pip install django-secret-key $ django-secret-key
Thanks in advance