Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • list all manage.py commands - sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws 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 aws 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
      languagetext
      > sudo su edxapp -s /bin/bash edxapp
      > cd
      > /edx/bin/python.edxapp /edx/bin/manage.edxapp lms manage_user staff staff@example.com --staff --superuser --settings=aws


    • 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 aws changepassword user
  • launch the django shell - sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws shell
  • importing a course from github

...

First install jq, then you should be able to just run this. Note that you lms.auth.json location may be different:

sudo apt-get install jq

sudo mysql $(jq -r '.DATABASES.default | "-u" + .USER + " -p\"" + .PASSWORD + "\" -h" + .HOST + " -P" + ( .PORT | tostring ) + " " + .NAME' /opt/openedx/lms.auth.json)

...