Project Startup (using vscode as IDE)
- Using pipenv, install django:
pipenv install django
- Install helpful packages for dev:
pipenv install -d pylint pylint-django
- Enter the newly created virtualenv:
pipenv shell
- Start the Django project:
django-admin startproject mysite
- Open vscode in the project directory:
code .
- Edit the vscode settings file and add the following values:
{
...
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": [
"--load-plugins=pylint-django"
],
"python.linting.pylintPath": "<path to venv here>/bin/pylint"
}
The path to the venv can be found with pipenv --venv
.