Djecrety package provides a command to generate a new secret key for your project and save it to settings.py file.
Homepage PyPI
pip install djecrety==1.0.15
Login to resync this project