Note that this may not be safe to use for production, as S Ghosh is pointing out in a post below. But copy and paste this after running django-admin shell for example to quickly get a key.
from django.core.management.utils import get_random_secret_key
get_random_secret_key()