crypto.getRandomValues() — same RNG as Django's own get_random_secret_key().
Generate a cryptographically secure Django SECRET_KEY using the same algorithm as django-admin startproject — configurable length and character set, with ready-to-paste settings.py snippets.
crypto.getRandomValues() — same RNG as Django's own get_random_secret_key().⌘ Enter / Ctrl Enter to regenerate. Works offline.