bash script Django superuser oluşturmak. bash script createsuperuser
Django projenizde yeni super kullanıcı oluşturmak için bash script veya terminalde aşağıdaki kodu çalıştırabilirsiniz.
echo "from django.contrib.auth.models import User; User.objects.create_superuser('yedekadmin', '', 'PAROLA')" | python3.6 manage.py shell
Faydalı oldu mu?
Geri bildiriminiz için teşekkürler!