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 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
      languagetext
      > sudo su edxapp -s /bin/bash
      >
      cd
      >
      source edxapp_env
      >
      /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

...