🔥 ULTIMATE FIX: Direct settings.py CSRF and Telegram fixes
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
✅ CSRF_TRUSTED_ORIGINS fixes in main settings.py: - Added try/catch logic to handle empty environment variables - Fallback to proper scheme-formatted defaults for CI/tests - No more 4_0.E001 errors - Django 4.0+ compliant ✅ Telegram bot database protection: - Added try/catch around TelegramSettings.objects.first() - Graceful handling of missing database tables during migrations - Proper error messages instead of crashes ✅ Local validation passed: - System check identified no issues (0 silenced) - CSRF validation working correctly - Telegram bot errors handled gracefully This should be the FINAL fix for CI/CD pipeline!
This commit is contained in:
@@ -90,19 +90,19 @@
|
||||
<div class="d-flex align-items-center mb-2">
|
||||
<i class="fas fa-envelope me-3 text-primary"></i>
|
||||
<a href="mailto:info@smartsoltech.kr" class="text-light opacity-75 text-decoration-none hover-primary">
|
||||
info@smartsoltech.kr
|
||||
a.choi@smartsoltech.kr
|
||||
</a>
|
||||
</div>
|
||||
<div class="d-flex align-items-center mb-2">
|
||||
<i class="fas fa-phone me-3 text-primary"></i>
|
||||
<a href="tel:+82-10-XXXX-XXXX" class="text-light opacity-75 text-decoration-none hover-primary">
|
||||
+82-10-XXXX-XXXX
|
||||
<a href="tel:+82-10-5693-6103" class="text-light opacity-75 text-decoration-none hover-primary">
|
||||
+82-10-5693-6103
|
||||
</a>
|
||||
</div>
|
||||
<div class="d-flex align-items-start mb-2">
|
||||
<i class="fas fa-map-marker-alt me-3 text-primary mt-1"></i>
|
||||
<span class="text-light opacity-75">
|
||||
Seoul, South Korea
|
||||
Gwangju, South Korea
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -234,7 +234,7 @@
|
||||
<i class="fas fa-comments me-2"></i>
|
||||
Бесплатная консультация
|
||||
</button>
|
||||
<a href="#" class="btn btn-outline-light btn-lg">
|
||||
<a href="#" class="btn btn-outline-dark btn-lg">
|
||||
<i class="fas fa-download me-2"></i>
|
||||
Скачать прайс-лист
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user