Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Django #Give #normal #user #privileges #python #shell
ADD COMMENT
Topic
Name
5+1 =