Skip to content

Instantly share code, notes, and snippets.

@AndersonFriaca
AndersonFriaca / secret_gen.py
Created June 29, 2019 22:45 — forked from henriquebastos/secret_gen.py
SECRET_KEY generator.
#!/usr/bin/env python
"""
Django SECRET_KEY generator.
"""
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
print(get_random_string(50, chars))