Skip to content

Instantly share code, notes, and snippets.

@gianrubio
Created June 15, 2015 21:52
Show Gist options
  • Save gianrubio/4b42ec7f55317422ef86 to your computer and use it in GitHub Desktop.
Save gianrubio/4b42ec7f55317422ef86 to your computer and use it in GitHub Desktop.
Randoms Secret Key
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
get_random_string(50, chars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment