dum3ng / study-issues

0 stars 0 forks source link

django project in vscode #23

Closed dum3ng closed 5 years ago

dum3ng commented 5 years ago

install a python interpreter

use conda as example:

conda create -n myenv python=3.6

install tools

The linter and django plugin

pip install pylint pylint-django

config the project

If the django app src code is not in the root directory of the project, we may need to use PYTHONPATH variable to specify the path python to find out modules:

# in .env file
PYTHONPATH=django-app