Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Adding the --staff flag to suggested superuser command. Not including it results in not being able to access django admin

...

  • 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 -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

...