{ "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 } } }