I wrote an ansible-role for openwisp2 to ease its deployment, it\'s a series of django apps. To ease the deployment as much as possible, I wrote a simple (probably trivial)
For lazy people like me:
from django.core.management.utils import get_random_secret_key get_random_secret_key()