Добавил превьюшки дхф и настройки сервера
All checks were successful
Deploy MES Core / deploy (push) Successful in 3m32s

This commit is contained in:
2026-04-02 23:52:04 +03:00
parent 9554d47301
commit cddbfeadde
14 changed files with 612 additions and 14 deletions

20
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,20 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Django: Runserver",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": [
"runserver"
],
"django": true,
"justMyCode": true,
// Это заставит сервер перезапускаться при изменении кода
"autoReload": {
"enable": true
}
}
]
}

42
.vscode/settings.json vendored
View File

@@ -1,3 +1,43 @@
{
"python-envs.pythonProjects": []
// --- ПИТОН И АВТОМАТИКА ---
"python.analysis.typeCheckingMode": "basic", // Подсказки по типам данных
"editor.formatOnSave": true, // Форматировать код при сохранении (маст-хэв!)
"python.formatting.provider": "black", // Использовать Black для красоты кода
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit" // Сам расставит импорты по алфавиту
},
// --- DJANGO И HTML ---
"files.associations": {
"**/*.html": "django-html", // Чтобы VS Code понимал синтаксис {% if %}
"**/templates/**/*.html": "django-html"
},
"emmet.includeLanguages": {
"django-html": "html" // Чтобы Emmet (развертывание тегов через Tab) работал в шаблонах
},
// --- ИНТЕРФЕЙС И КОМФОРТ ---
"editor.bracketPairColorization.enabled": true, // Цветные скобочки (чтобы не путаться в вложенности)
"editor.guide.bracketPairs": "active",
"editor.fontSize": 14, // Подбери под свои глаза
"editor.tabSize": 4,
"editor.renderWhitespace": "boundary", // Видеть лишние пробелы в конце строк
"files.autoSave": "onFocusChange", // Сохранять файл, когда переключаешься в браузер
// --- ЧИСТОТА В ПРОЕКТЕ ---
"files.exclude": {
"**/.git": true,
"**/__pycache__": true, // Прячем мусорные папки питона
"**/*.pyc": true,
"**/node_modules": true,
"**/.DS_Store": true
},
// --- ТЕРМИНАЛ ---
"terminal.integrated.fontSize": 13,
"terminal.integrated.cursorStyle": "line",
// --- ГИТ ---
"git.autofetch": true, // Проверять обновления в репозитории самостоятльно
"git.confirmSync": false
}