Python Forum
Have django-extensions installed, can't find shell_plus
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Have django-extensions installed, can't find shell_plus
#2
I have resolved part of the problem, and the answer is staring me in the face, but my brain is jumbled from frustration, and I'm having trouble finishing right now. At any rate, here's what has been done.

After installing django-extensions in my django virtual environment (which has been activated), here's my pip list:
Output:
... > pip list Package Version ----------------- ------- backcall 0.1.0 decorator 4.3.0 Django 1.8.19 django-extensions 2.0.7 ipython 6.4.0 ipython-genutils 0.2.0 jedi 0.12.1 parso 0.3.1 pexpect 4.6.0 pickleshare 0.7.4 pip 10.0.1 prompt-toolkit 1.0.15 ptyprocess 0.6.0 Pygments 2.2.0 pytz 2018.5 setuptools 39.0.1 simplegeneric 0.8.1 six 1.11.0 traitlets 4.3.2 wcwidth 0.1.7
So I see it's installed in the proper place.
I then discovered (since I'm new to django, didn't immediately realize this step was necessary) that my django application had to be made aware of the package. This is done by adding
    'django-extensions',
to the end of the INSTALLED_APPS list in settings.py

So, after doing that, I try to run:
./manage.py shell_plus --notebook
and get a step further, but still not finding django-extensions:
Error:
Traceback (most recent call last): File "./manage.py", line 15, in <module> execute_from_command_line(sys.argv) File "/run/media/Larz60p/Data-4TB/python/a-d/d/Django/StartupBlog/lib/python3.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line utility.execute() File "/run/media/Larz60p/Data-4TB/python/a-d/d/Django/StartupBlog/lib/python3.7/site-packages/django/core/management/__init__.py", line 328, in execute django.setup() File "/run/media/Larz60p/Data-4TB/python/a-d/d/Django/StartupBlog/lib/python3.7/site-packages/django/__init__.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "/run/media/Larz60p/Data-4TB/python/a-d/d/Django/StartupBlog/lib/python3.7/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/run/media/Larz60p/Data-4TB/python/a-d/d/Django/StartupBlog/lib/python3.7/site-packages/django/apps/config.py", line 86, in create module = import_module(entry) File "/home/Larz60p/.pyenv/versions/3.7.0/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named 'django-extensions'
So, I have to leave it alone for a bit and come back to it later.
This has to be something simple, but mt tired brain is not in a state where I can recognize what's missing.
Reply


Messages In This Thread
RE: Have django-extensions installed, can't find shell_plus - by Larz60+ - Jul-12-2018, 01:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Django: View is unable to find attributes of database model pythonpaul32 0 550 Dec-07-2023, 06:38 PM
Last Post: pythonpaul32
Bug Selenium installed but not installed? NoNameoN 9 4,799 Feb-19-2021, 11:31 AM
Last Post: NoNameoN
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,352 Jun-30-2019, 12:21 AM
Last Post: scidam
  Django+uWsgi unable to find "application" callable rosettas 3 11,993 Aug-24-2017, 01:41 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020