Unknown command: shell_plus and --settings

andilabs picture andilabs · Apr 1, 2014 · Viewed 12.4k times · Source

I try to run some

python manage.py shell_plus --notebook --settings=my_app.settings.andi

But it fails with error:

Unknown command: 'shell_plus'
Type 'manage.py help' for usage.

I have ipython and shell_plus installed (from my pip freeze)

django-shell-plus==1.1.5
ipython==1.2.1

How to deal with it?

Answer

NING Li picture NING Li · Dec 31, 2016
  1. Make sure you have installed django-extensions.

    pip install django-extensions

  2. Add django_extensions (note the underscore between) to the INSTALLED_APPS list in settings.py file of your project.