Fix CSRF_TRUSTED_ORIGINS empty string error

Filter out empty strings from CSRF_TRUSTED_ORIGINS to prevent Django 4.0+ error

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude 2025-07-12 04:17:28 +05:30
parent f7a495c776
commit 3c8a0e5ba1

View File

@ -161,7 +161,7 @@ N8N_WEBHOOK_SOCIAL_ADS = config('N8N_WEBHOOK_SOCIAL_ADS', default='')
OPENWEATHER_API_KEY = config('OPENWEATHER_API_KEY', default='')
# Security settings
CSRF_TRUSTED_ORIGINS = config('CSRF_TRUSTED_ORIGINS', default='').split(',')
CSRF_TRUSTED_ORIGINS = [origin.strip() for origin in config('CSRF_TRUSTED_ORIGINS', default='').split(',') if origin.strip()]
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
# Default primary key field type