In my study, I have generated my SECRET_KEY every time I start the project.
For this I use a variable in .env and the eval function in settings.py. These files look like this:
.env
SECRET_KEY_VALUE_ENV = secrets.token_hex(100)
settings.py
import secrets
SECRET_KEY = eval(os.environ.get('SECRET_KEY_VALUE_ENV'))
Is there any problem in generating the SECRET_KEY this way?