File size: 1,135 Bytes
667aacd ecf81ae | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | {
"folders": [
{
"path": "."
}
],
"settings": {
// Automatically targets your virtual environment (adjust path if needed)
"python.defaultInterpreterPath": "${workspaceFolder}/venv/bin/python",
// Tells the linter where your Django root is to prevent import errors
"python.analysis.extraPaths": [
"${workspaceFolder}"
],
// Forces HTML files in template folders to use Django HTML syntax highlighting
"files.associations": {
"**/templates/**/*.html": "django-html",
"*.html": "django-html"
},
// Tailors editor settings specifically for Django template files
"[django-html]": {
"editor.tabSize": 4,
"editor.formatOnSave": true,
"editor.defaultFormatter": "batisteo.vscode-django"
},
// Excludes messy compiled files from your VS Code file explorer search
"files.exclude": {
"**/__pycache__": true,
"**/*.pyc": true,
"**/.*": true
}
}
}
|