Django Give normal user privileges using python shell
from django.contrib.auth.models import User
user = User.objects.get(username='normaluser')
user.is_superuser = True
user.save()
Are there any code examples left?
New code examples in category Other