| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| djangoapps | ||
| envs | ||
| lib | ||
| static | ||
| templates | ||
| tests | ||
| README.rst | ||
| __init__.py | ||
| celery.py | ||
| startup.py | ||
| urls.py | ||
| urls_dev.py | ||
| wsgi.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 |
|---|---|---|
| .. | ||
| djangoapps | Loading commit data... | |
| envs | Loading commit data... | |
| lib | Loading commit data... | |
| static | Loading commit data... | |
| templates | Loading commit data... | |
| tests | Loading commit data... | |
| README.rst | Loading commit data... | |
| __init__.py | Loading commit data... | |
| celery.py | Loading commit data... | |
| startup.py | Loading commit data... | |
| urls.py | Loading commit data... | |
| urls_dev.py | Loading commit data... | |
| wsgi.py | Loading commit data... |