Reputation: 1437
The Python version is 2.7. When I run the below command
(test) C:\virtualenvs\test> python manage.py runserver
under a virtual environment I get an error saying:
File "C:\virtualenvs\test\lib\site-packages\django\apps\config.py", line 90, in create
Module = import_module(entry)
File "c:\python27\Lib\importlib\__init__.py", line 37, in import_module__import__(name)
ImportError: no module named Include
Any help is highly appreciated.
Upvotes: 1
Views: 1902
Reputation: 1632
You have not provided any code, if I was to assume, then I would say you haven't imported include
in your urls.py:
from django.conf.urls import include
Add the above in your urls.py and see what happens.
Upvotes: 1