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

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


Neha
 Neha
(@asha)
Member Admin
Joined: 4 years ago
Posts: 31
Topic starter  

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


Quote
Topic Tags
myTechMint
(@mytechmint)
Member Moderator
Joined: 4 years ago
Posts: 52
 

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())'

Neha liked
ReplyQuote