Skip to content

Instantly share code, notes, and snippets.

@vitorfs
Created October 30, 2017 09:27
Show Gist options
  • Save vitorfs/9e09b4332ece80cbf29f233c8872393c to your computer and use it in GitHub Desktop.
Save vitorfs/9e09b4332ece80cbf29f233c8872393c to your computer and use it in GitHub Desktop.

Revisions

  1. vitorfs created this gist Oct 30, 2017.
    5 changes: 5 additions & 0 deletions secret.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    from django.utils.crypto import get_random_string

    chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
    random_string = get_random_string(50, chars)
    print(random_string)