question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named 'django-extensions' on Django 3.x

See original GitHub issue

Pipenv file:

django = "==3.0.2"
django-extensions = "==2.2.5"

settings.py

import os
import django_extensions
(...)
INSTALLED_APPS = [
    '...',
    'django-extensions'
]

When running:

$ pipenv run python manage_django.py shell
Traceback (most recent call last):
  File "manage_django.py", line 21, in <module>
    main()
  File "manage_django.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "/Users/martinvol/.local/share/virtualenvs/project-ue1Dk_mJ/lib/python3.6/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/Users/martinvol/.local/share/virtualenvs/project-ue1Dk_mJ/lib/python3.6/site-packages/django/core/management/__init__.py", line 377, in execute
    django.setup()
  File "/Users/martinvol/.local/share/virtualenvs/project-ue1Dk_mJ/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/Users/martinvol/.local/share/virtualenvs/project-ue1Dk_mJ/lib/python3.6/site-packages/django/apps/registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
  File "/Users/martinvol/.local/share/virtualenvs/project-ue1Dk_mJ/lib/python3.6/site-packages/django/apps/config.py", line 90, in create
    module = import_module(entry)
  File "/Users/martinvol/.local/share/virtualenvs/project-ue1Dk_mJ/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'django-extensions'

Please note that the import inside settings.py doesn’t fail.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
trbscommented, Jan 8, 2020

it’s django_extensions not django-extensions 😃

4reactions
martinvolcommented, Jan 10, 2020

🤦‍♂️

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module named django_extensions
It looks as if your sample project relies on django-extensions. You can install it by activating your virtualenv, then running:
Read more >
ImportError No module named django extensions - Edureka
I am completely new to python as well as to Django. I got a sample Django Rest project. When I run: python manage.py...
Read more >
ImportError No module named django extensions - YouTube
ImportError No module named django extensions # Djangoextension #NoModule #ImportError #motechapp.
Read more >
Error: no module named django_extensions - Google Groups
I've installed django-extensions via Pip, and I'm receiving an error when I try to run any ./manage.py commands in my project. I used:...
Read more >
django-extensions - PyPI
INSTALLED_APPS = ( ... 'django_extensions', ... ) Using It. Generate (and view) a graphviz graph of app models: $ python manage.py graph_models - ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found