15

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?

Raptor
  • 53,206
  • 45
  • 230
  • 366
andilabs
  • 22,159
  • 14
  • 114
  • 151

2 Answers2

46
  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.

Community
  • 1
  • 1
NING Li
  • 571
  • 1
  • 4
  • 2
  • 1
    This was very useful. Just to clarify, in step (2) it should added be to `INSTALLED_APPS` (spelling) within `settings.py` (or whatever python file you use for settings). – NYCeyes Oct 13 '17 at 23:36
11

According to documentation, you need to call it as ./manage.py shell+.

Probably you've mixed up this command with shell_plus from django-extensions?

neoascetic
  • 2,476
  • 25
  • 34