Skip to content

Instantly share code, notes, and snippets.

@balasminfotech
balasminfotech / secret.py
Created February 18, 2022 04:42 — forked from vitorfs/secret.py
Generate secret key
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
random_string = get_random_string(50, chars)
print(random_string)