说明

基于dogwood版本

指令

  • /edx/bin/python.edxapp /edx/bin/manage.edxapp cms –setting=aws
  • /edx/bin/python.edxapp /edx/bin/manage.edxapp lms –setting=aws

命令列表

lms

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
:::text
[auth]
    changepassword
    createsuperuser

[certificates]
    cert_whitelist
    create_fake_cert
    fix_ungraded_certs
    gen_cert_report
    regenerate_user
    resubmit_error_certificates
    ungenerated_certs

[course_groups]
    post_cohort_membership_fix

[course_overviews]
    generate_course_overview

[course_structures]
    generate_course_structure

[courseware]
    clean_history
    clean_xml
    dump_course_ids
    dump_course_structure
    export_course
    import
    regrade_partial

[dashboard]
    git_add_course

[debug]
    dump_xml_courses

[django]
    check
    compilemessages
    createcachetable
    dbshell
    diffsettings
    dumpdata
    flush
    inspectdb
    loaddata
    makemessages
    makemigrations
    migrate
    runfcgi
    shell
    showmigrations
    sql
    sqlall
    sqlclear
    sqlcustom
    sqldropindexes
    sqlflush
    sqlindexes
    sqlmigrate
    sqlsequencereset
    squashmigrations
    startapp
    startproject
    syncdb
    testserver
    validate

[django_comment_client]
    assign_role
    assign_roles_for_course
    create_roles_for_existing
    get_discussion_link
    reload_forum_users
    seed_permissions_roles
    show_permissions

[django_nose]
    test

[django_openid_auth]
    openid_cleanup

[djcelery]
    celery
    celerybeat
    celerycam
    celeryd
    celeryd_detach
    celeryd_multi
    celerymon
    djcelerymon

[edx_proctoring]
    set_attempt_status

[edx_sga]
    sga_migrate_submissions

[edxmako]
    preprocess_assets

[instructor]
    compute_grades
    dump_grades

[mailing]
    mailchimp_id
    mailchimp_sync_announcements
    mailchimp_sync_course

[oauth2_provider]
    create_oauth2_client

[openassessment]
    create_oa_submissions
    performance_test_for_submissions
    simulate_ai_grading_error
    upload_oa_data

[sessions]
    clearsessions

[shoppingcart]
    retire_order

[simple_history]
    populate_history

[static_replace]
    clear_collectstatic_cache

[staticfiles]
    collectstatic
    findstatic
    runserver

[student]
    6002exportusers
    6002importusers
    add_to_group
    anonymized_id_mapping
    assigngroups
    cert_restriction
    change_enrollment
    create_random_users
    create_user
    emaillist
    get_grades
    set_staff
    set_superuser
    sync_user_info
    transfer_students
    userinfo

[teams]
    reindex_course_team

[third_party_auth]
    saml

[thumbnail]
    thumbnail

[user_api]
    email_opt_in_list

[verify_student]
    retry_failed_photo_verifications
    set_software_secure_status

[wiki]
    wikiviz

[xblock_django]
    ensure_indexes

cms

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
:::text

[auth]
    changepassword
    createsuperuser

[contentstore]
    check_course
    cleanup_assets
    clone_course
    create_course
    delete_course
    delete_orphans
    edit_course_tabs
    empty_asset_trashcan
    export
    export_all_courses
    export_convert_format
    fix_not_found
    force_publish
    git_export
    import
    migrate_to_split
    populate_creators
    prompt
    reindex_course
    reindex_library
    restore_asset_from_trashcan
    utils
    xlint

[course_groups]
    post_cohort_membership_fix

[course_overviews]
    generate_course_overview

[course_structures]
    generate_course_structure

[django]
    check
    compilemessages
    createcachetable
    dbshell
    diffsettings
    dumpdata
    flush
    inspectdb
    loaddata
    makemessages
    makemigrations
    migrate
    runfcgi
    shell
    showmigrations
    sql
    sqlall
    sqlclear
    sqlcustom
    sqldropindexes
    sqlflush
    sqlindexes
    sqlmigrate
    sqlsequencereset
    squashmigrations
    startapp
    startproject
    syncdb
    testserver
    validate

[django_nose]
    test

[django_openid_auth]
    openid_cleanup

[djcelery]
    celery
    celerybeat
    celerycam
    celeryd
    celeryd_detach
    celeryd_multi
    celerymon
    djcelerymon

[edx_proctoring]
    set_attempt_status

[edx_sga]
    sga_migrate_submissions

[edxmako]
    preprocess_assets

[oauth2_provider]
    create_oauth2_client

[openassessment]
    create_oa_submissions
    performance_test_for_submissions
    simulate_ai_grading_error
    upload_oa_data

[require]
    require_init

[sessions]
    clearsessions

[simple_history]
    populate_history

[static_replace]
    clear_collectstatic_cache

[staticfiles]
    collectstatic
    findstatic
    runserver

[student]
    6002exportusers
    6002importusers
    add_to_group
    anonymized_id_mapping
    assigngroups
    cert_restriction
    change_enrollment
    create_random_users
    create_user
    emaillist
    get_grades
    set_staff
    set_superuser
    sync_user_info
    transfer_students
    userinfo

[user_api]
    email_opt_in_list

[verify_student]
    retry_failed_photo_verifications
    set_software_secure_status

[xblock_django]
    ensure_indexes

使用

具体的使用方法可以翻阅源码或是测试用例management/commands/tests

demo

  • /edx/bin/manage.edxapp cms –setting=aws export course-v1:a+b+c /tmp/test/a_b_c //导出课程
  • 导出课程还是用python代码吧:from contentstore.management.commands.export_all_courses import export_courses_to_output_path