python - Is there any restriction for the value the SECRET_KEY setting may take in a Django project? -


i know can't empty, besides that, there other restriction? can set string value? length of string significant?

i've seen there secret_key generators, this one, prefer not use since, despite being unlikely, provider of tool store key generated , use against me. however, maybe there restrictions makes key generation non trivial , use of kind of tools necessary.

the secret_key must @ least 50 characters long , have @ least 5 unique characters, shown here, or may warning (however, key still usable, it's weak if doesn't meet criteria).

if want easy way generate own, django.utils.crypto provides get_random_string() function.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -