Last active
November 28, 2016 15:51
-
-
Save clintonb/8f77a87a220248743cbd to your computer and use it in GitHub Desktop.
Create a new edx-platform superuser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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