Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown command: shell_plus and --settings

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?

like image 291
andilabs Avatar asked Apr 01 '14 10:04

andilabs


1 Answers

  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.

like image 165
NING Li Avatar answered Sep 21 '22 12:09

NING Li