Django 6 · Static files and deployment

Generate a secret key

Print a new random value for SECRET_KEY.

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

Official Django 6 documentation

More static files and deployment commands

All static files and deployment commands · Django 6 cheatsheet

Was this page helpful?