shell_plus is a Django management command that opens a more convenient shell by loading commonly used code before you start typing. section 13.2.1
Its useful shortcuts include:
- Pre-imports modules, classes, and functions commonly used in Django shell work, including settings, reverse, and Q. section 13.2.1
- Lets you configure additional imports, including frequently used application models. section 13.2.1
- Reduces repetitive import statements when exploring or interacting with a Django project. section 13.6
Add shell_plus to a project
Install Django Extensions with `python -m pip install django-extensions`, then add `django_extensions` to `INSTALLED_APPS`. The shell_plus management command can then provide a Django shell with common utilities and configured models ready to use. section 13.2.1
