Django settings for vscode

Django -- Posted on June 25, 2022

django settings for vscode

              
                from vscode market place install  python,django,beautify

in your python virtual environment install packages

autopep8
pylint
pylint-django


in vscode  settings.json add 

{
    "emmet.includeLanguages": {
        "django-html": "html"
    },
    "python.PythonPath": ".venv\\scripts\\python.exe",
    "editor.formatOnSave": true,
    "python.formatting.provider": "autopep8",
    "python.linting.enabled": true,
    "python.linting.lintOnSave": true,
    "files.associations": {
        "**/templates/*.html": "django-html",
        "**/templates/*": "django-txt",
        "**/requirements{/**,*}.{txt,in}": "pip-requirements",
        "*.html": "html"
    },
}
                  
   
            

Related Posts