Is there a function...
 
Share:
Notifications
Clear all

Is there a function for generating settings.SECRET_KEY in Django?


Neha
 Neha
(@asha)
Member Admin
Joined: 1 year ago
Posts: 27
Topic starter  

Is there a function for generating settings.SECRET_KEY in Django?


Quote
Topic Tags
myTechMint
(@mytechmint)
Member Moderator
Joined: 1 year ago
Posts: 29
 

Run the below command if you have Python already installed and can be accessed with "python" or just replace the below command with python2 or python3 or the version you have.

python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'

ReplyQuote