Traceback (most recent call last):
File "manage.py", line 16, in <module>
"Couldn't import Django. Are you sure it's installed and "
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
Asked
Active
Viewed 88 times
-3
Brown Bear
- 18,332
- 9
- 49
- 68
Chitranjan Mukhiya
- 33
- 5
-
1Well did you forget to activate the virtual environment? (it is part of the error message)? – Willem Van Onsem Jun 26 '19 at 11:26
-
Here you have answer for the same question... https://stackoverflow.com/questions/46210934/importerror-couldnt-import-django – michay Jun 26 '19 at 12:04
1 Answers
0
good article to understand PYTHONPATH: https://bic-berkeley.github.io/psych-214-fall-2016/using_pythonpath.html
export PYTHONPATH="$PYTHONPATH:/home/user/work/your_django_project"
frankegoesdown
- 1,876
- 1
- 15
- 36