Skip to content

Instantly share code, notes, and snippets.

@tonytan4ever
Last active November 5, 2016 03:49
Show Gist options
  • Save tonytan4ever/d7e2dc7e736c65f3c1ac00a52cc888be to your computer and use it in GitHub Desktop.
Save tonytan4ever/d7e2dc7e736c65f3c1ac00a52cc888be to your computer and use it in GitHub Desktop.
edx update user to superuser
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws shell
from django.contrib.auth.models import User
me = User.objects.get(username="<user_name_of_the_user_you_want_to_be_super_user>")
me.is_superuser = True
me.is_staff = True
me.active = True
me.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment