Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
24524ef3
Commit
24524ef3
authored
Nov 04, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addressing comments
parent
4a910f87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
common/djangoapps/student/management/commands/create_user.py
+5
-5
No files found.
common/djangoapps/student/management/commands/create_user.py
View file @
24524ef3
...
@@ -8,20 +8,20 @@ from django.contrib.auth.models import User
...
@@ -8,20 +8,20 @@ from django.contrib.auth.models import User
class
Command
(
BaseCommand
):
class
Command
(
BaseCommand
):
help
=
"""
help
=
"""
This command creates and registers a user in a given course
This command creates and registers a user in a given course
as "audit", "verified
_id
" or "honor".
as "audit", "verified" or "honor".
example:
example:
# Enroll a user test@example.com into the demo course
# Enroll a user test@example.com into the demo course
# The username and name will default to "test"
# The username and name will default to "test"
manage.py ... create_user -e test@example.com -p insecure -c edX/Open_DemoX/edx_demo_course -m verified
_id
manage.py ... create_user -e test@example.com -p insecure -c edX/Open_DemoX/edx_demo_course -m verified
"""
"""
option_list
=
BaseCommand
.
option_list
+
(
option_list
=
BaseCommand
.
option_list
+
(
make_option
(
'-m'
,
'--mode'
,
make_option
(
'-m'
,
'--mode'
,
metavar
=
'ENROLLMENT_
TYP
E'
,
metavar
=
'ENROLLMENT_
MOD
E'
,
dest
=
'mode'
,
dest
=
'mode'
,
default
=
'honor'
,
default
=
'honor'
,
choices
=
(
'audit'
,
'verified
_id
'
,
'honor'
),
choices
=
(
'audit'
,
'verified'
,
'honor'
),
help
=
'Enrollment type for user for a specific course'
),
help
=
'Enrollment type for user for a specific course'
),
make_option
(
'-u'
,
'--username'
,
make_option
(
'-u'
,
'--username'
,
metavar
=
'USERNAME'
,
metavar
=
'USERNAME'
,
...
@@ -47,7 +47,7 @@ class Command(BaseCommand):
...
@@ -47,7 +47,7 @@ class Command(BaseCommand):
metavar
=
'COURSE_ID'
,
metavar
=
'COURSE_ID'
,
dest
=
'course'
,
dest
=
'course'
,
default
=
None
,
default
=
None
,
help
=
'course to enroll the user in (optiona)'
),
help
=
'course to enroll the user in (optiona
l
)'
),
make_option
(
'-s'
,
'--staff'
,
make_option
(
'-s'
,
'--staff'
,
metavar
=
'COURSE_ID'
,
metavar
=
'COURSE_ID'
,
dest
=
'staff'
,
dest
=
'staff'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment