문제

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?

도움이 되었습니까?

해결책 2

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?

다른 팁

  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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top