Skip to content

Instantly share code, notes, and snippets.

@return-none
Last active August 29, 2015 14:08
Show Gist options
  • Save return-none/c542e48d5eec353ca7ec to your computer and use it in GitHub Desktop.
Save return-none/c542e48d5eec353ca7ec to your computer and use it in GitHub Desktop.
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
print get_random_string(50, chars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment