In the DigitalOcean documentation 
<https://docs.digitalocean.com/tutorials/app-deploy-django-app/#setting-the-secret-key>
 
I just found that they use
`from django.core.management.utils import get_random_secret_key`
to generate a new, unique secret key.

I didn't know that there was such a function.
and the get_random_secret_key function seems to be not documented so far 
<https://docs.djangoproject.com/en/4.0/ref/utils/>.

Is this the recommended way to generate secret keys for Django apps?
If that's the case wouldn't it make sense to write a piece of documentation 
for that?

Kind regards,
Samuel✌

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/c6e885bc-b595-4833-a2c2-651e3b677b6cn%40googlegroups.com.
  • get... Sam
    • ... Fab
      • ... 'Adam Johnson' via Django developers (Contributions to Django itself)

Reply via email to