Skip to content

Instantly share code, notes, and snippets.

@clintonb
Last active November 28, 2016 15:51
Show Gist options
  • Save clintonb/8f77a87a220248743cbd to your computer and use it in GitHub Desktop.
Save clintonb/8f77a87a220248743cbd to your computer and use it in GitHub Desktop.
Create a new edx-platform superuser
sudo -u www-data /edx/bin/python.edxapp /edx/app/edxapp/edx-platform/manage.py lms --settings aws create_user -s -p edx -e [email protected]
sudo -u www-data /edx/bin/python.edxapp /edx/app/edxapp/edx-platform/manage.py lms --settings aws shell
from django.contrib.auth.models import User
me = User.objects.get(username="edxapp")
me.is_superuser = True
me.is_staff = True
me.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment