remove $ from allowed chars

django-environ has problems with environment variables that begin with a `$` sign, see https://github.com/joke2k/django-environ/issues/60
This commit is contained in:
Jannis Gebauer 2016-01-18 12:14:34 +01:00
parent 5756a61732
commit bd8d23fac3

View File

@ -33,7 +33,7 @@ except NotImplementedError:
def get_random_string( def get_random_string(
length=50, length=50,
allowed_chars='abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'): allowed_chars='abcdefghijklmnopqrstuvwxyz0123456789!@#%^&*(-_=+)'):
""" """
Returns a securely generated random string. Returns a securely generated random string.
The default length of 12 with the a-z, A-Z, 0-9 character set returns The default length of 12 with the a-z, A-Z, 0-9 character set returns