django-admin shell
Runs a Python interactive interpreter. Tries to use IPython or bpython, if one of them is available. Any standard input is executed as code
Options
Name | Description |
---|---|
--no-startup | When using plain Python, ignore the PYTHONSTARTUP environment variable and ~/.pythonrc.py script |
-i, --interface <{ipython,bpython,python}> | Specify an interactive interpreter interface. Available options: "ipython", "bpython", and "python" |
-c, --command <COMMAND> | Instead of opening an interactive shell, run a command as Django and exit |
-h, --help | Show this help message and exit |
--version | Show program's version number and exit |
-v, --verbosity <{0,1,2,3}> | Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output |
--settings <SETTINGS> | The Python path to a settings module, e.g. "myproject.settings.main". If this isn't provided, the DJANGO_SETTINGS_MODULE environment variable will be used |
--pythonpath <PYTHONPATH> | A directory to add to the Python path, e.g. "/home/djangoprojects/myproject" |
--traceback | Raise on CommandError exceptions |
--no-color | Don't colorize the command output |
--force-color | Force colorization of the command output |