✅ 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!
- 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