Commit Graph

6 Commits

Author SHA1 Message Date
6a576136af 🔥 ULTIMATE FIX: Direct settings.py CSRF and Telegram fixes
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!
2025-11-25 08:47:42 +09:00
8a95857010 🔧 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!
2025-11-25 08:37:54 +09:00
37d7fc74b8 fix: PostgreSQL compatibility and Telegram bot token validation
- Fixed PostgreSQL 18+ compatibility by using postgres:17 image
- Added token validation for Telegram bot
- Improved error handling in telegram_bot.py
- Added scripts for bot token management
- Cleaned up old QR codes and added new utility files
2025-11-23 21:23:51 +09:00
daa5c49bb9 fully functional. UX/UI stage 2024-11-01 19:27:14 +09:00
d1855a1af8 renew commit 2024-10-29 16:13:58 +09:00
f17c6b3a1a main funtions are ready
issue: ServiceRequest creates when QR code scanned
2024-10-14 05:24:48 +09:00