Dev
Django에서 admin user 생성하기 위한 명령
DevOps Engineer
2024. 9. 18. 05:35
728x90
명령줄에서 생성하기
python manage.py createsuperuser
관리 쉘에 접속해서 생성하기
from django.contrib.auth.models import User
User.objects.create_superuser('admin', 'admin@example.com', 'yourpassword')
728x90