В терминале:
openssl rand -hex 32
с помощью Python:
import secrets print(secrets.token_hex(32))
с помощью Django:
python manage.py shell from django.core.management.utils import get_random_secret_key get_random_secret_key()
В терминале:
openssl rand -hex 32
с помощью Python:
import secrets print(secrets.token_hex(32))
с помощью Django:
python manage.py shell from django.core.management.utils import get_random_secret_key get_random_secret_key()