...
- list all manage.py commands -
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings production help
- create a final grade and generate a certificate for a single user -
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings
production
regenerate_user -u honor@example.com -c edX/Open_DemoX/edx_demo_course create or upgrade a user to superuser
Execute the following commands (updating the username and email account appropriately)
Code Block language text > sudo su edxapp -s /bin/bash > cd > /edx/bin/python.edxapp /edx/bin/manage.edxapp lms manage_user staff staff@example.com --staff --superuser --settings=production
See also Creating an admin user in LMS/CMS, which is written for devstack
- set or change password -
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings
production
changepassword user - launch the django shell -
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings
production
shell importing a course from github
...
run migrations
sudo su edxapp -s /bin/bash cd ~ source edxapp_env python /edx/app/edxapp/edx-platform/manage.py {lms/cms} syncdb --settings=
production
delete course -
sudo -u www-data /edx/bin/python.edxapp ./manage.py cms --settings=
**production
delete_course Organization/CourseNumber/CourseRun commit- delete course in Cypress version ** - version
sudo -u www-data /edx/bin/python.edxapp ./manage.py cms --settings=
production
delete_course course-v1:Organization+CourseNumber+CourseRun commit
See help
and help <cmd>
for more information!
MySQL access
First install jq
, then you should be able to just run this. Note that you lms.auth.json
location may be different:
...