2👍
Did you install Django into your main Python directory? If so, the version of Python might have been upgraded. This might have wiped your central site-packages
. If, so, just reinstall Django.
Alternatively, and more advisable, use virtualenv. This will create a separate Python environment (including site-packages
for each project), preventing this (probably) from happening again in future.
👤Joe
0👍
Install VirtualEnv Systemwide then setup virtual env
Installing
sudo easy_install virtualenv
now create project folder and cd into that after that
virtualenv venv
. venv/bin/activate
then install django using pip
pip install django
- [Answered ]-Can't access outbox while testing with lettuce
- [Answered ]-How can I logout facebook itself on Django APP with python-social-auth?
Source:stackexchange.com