1π
β
The problem was with virtualenv β it was not enabled.
In order to check the version of Django (and the path to the module), you could add the following lines to ./manage.py
file:
print(__import__('django')) # Should print the module information
print(__import__('django').__file__) # Should print the location of __init__.py file
Right after the if __name__ == '__main__'
line.
π€awesoon
Source:stackexchange.com