[PYTHON] Avoid errors when creating Django projects in Intellij IDEA (Django not found in selected interpreter)

Described the workaround when an error (Django not found in selected interpreter) appears when creating a Django project in Intellij IDEA.

·phenomenon File > New project > Python Module ↓ Click "Configure" from the Specify the Python interpreter screen ↓ Click "+" ↓ Click Python SDK> Crete virtual env ... ↓ OK > Next ↓ Check Django and click "finish" ↓ Django not found in selected interpreter error message is displayed

·approach Install django on the way to the virtualenv environment created on IDEA Or select a virtualenv environment with django installed in advance

File > New project > Python Module ↓ Click "Configure" from the Specify the Python interpreter screen ↓ Click "+" ↓ Click Python SDK> Crete virtual env ... ↓ OK > Next ↓ Terminal from here Make virtualenv active (~ / Hoge_env / is the directory created by Create virtualenv)

$ source ~/hoge_env/bin/activate

↓ Install django

$ pip install django==1.7.1

↓ IDEA from here Check Django and click "finish"

that's all

Recommended Posts

Avoid errors when creating Django projects in Intellij IDEA (Django not found in selected interpreter)