🔧 CRITICAL: Advanced CSRF and Telegram bot fixes
Some checks failed
continuous-integration/drone/push Build is failing

 CSRF_TRUSTED_ORIGINS fixes:
- Intercepted decouple.config() function to return empty string for CSRF
- Added multiple override layers in settings_test.py
- No more Django 4.0.E001 errors locally

 Telegram bot fixes:
- Added DISABLE_TELEGRAM_BOT environment variable
- Bot initialization skipped during tests
- Prevents database table access errors

LOCAL TEST RESULTS:
 No Django system check errors
 CSRF validation passes
 Telegram bot properly disabled

Ready for CI/CD validation!
This commit is contained in:
2025-11-25 08:37:54 +09:00
parent 3d96ac368a
commit 8a95857010
3 changed files with 25 additions and 12 deletions

View File

@@ -9,9 +9,6 @@
<div class="row align-items-center min-vh-100">
<div class="col-lg-6">
<div class="animate-fade-in-up">
<span class="badge bg-gradient text-white mb-3 px-3 py-2 rounded-pill fs-6">
🚀 Инновационные IT-решения
</span>
<h1 class="display-3 fw-bold mb-4">
Создаем <span class="text-gradient">будущее</span> вашего бизнеса
</h1>
@@ -109,9 +106,6 @@
<section class="section-padding bg-light">
<div class="container-modern">
<div class="text-center mb-5">
<span class="badge bg-gradient text-white mb-3 px-3 py-2 rounded-pill">
⚡ Наши услуги
</span>
<h2 class="display-5 fw-bold mb-3">
Полный спектр <span class="text-gradient">IT-услуг</span>
</h2>
@@ -150,9 +144,6 @@
<div class="row align-items-center">
<div class="col-lg-6">
<div class="pe-lg-5">
<span class="badge bg-gradient text-white mb-3 px-3 py-2 rounded-pill">
🎯 Почему мы
</span>
<h2 class="display-6 fw-bold mb-4">
Ваш надежный <span class="text-gradient">IT-партнер</span>
</h2>