1from django.contrib.auth.models import User
2
3usr = User.objects.get(username='your username')
4usr.is_superuser=True
5usr.is_staff=True
6usr.set_password('raw password')
7usr.save()
1python manage.py shell
2
3from django.contrib.auth.models import User
4
5usr = User.objects.get(username='your username')
6usr.set_password('raw password')
7usr.save()