| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| contentstore | ||
| course_creators | ||
| models | ||
| xblock_config | ||
| __init__.py |
https://docs.djangoproject.com/en/1.8/howto/custom-management-commands/ You need to declare and do proper argument parsing. --commit is also more natural than a bare 'commit' on the end of a command. Switch from calling handle() directly to call_command(). call_command() simulates using the management command so is a better test of the command line interface.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| contentstore | Loading commit data... | |
| course_creators | Loading commit data... | |
| models | Loading commit data... | |
| xblock_config | Loading commit data... | |
| __init__.py | Loading commit data... |