fix: configure CI database connection properly

- Add dotenv loading to Django settings
- Update CI workflow to use correct environment variables
- Set POSTGRES_* variables instead of DATABASE_URL
- Add environment variables to all Django management commands
- Fixes CI test failures due to database connection issues
This commit is contained in:
Stiftung Development
2025-09-06 18:47:23 +02:00
parent dcc91b9f49
commit 35ba089a84
64 changed files with 7040 additions and 1419 deletions

View File

@@ -19,7 +19,16 @@
<i class="fas fa-exclamation-triangle me-2"></i>Warnung!
</h5>
<p class="mb-0">
Sind Sie sicher, dass Sie die Förderung für <strong>{{ foerderung.person.get_full_name }}</strong>
Sind Sie sicher, dass Sie die Förderung für
<strong>
{% if foerderung.destinataer %}
{{ foerderung.destinataer.get_full_name }}
{% elif foerderung.person %}
{{ foerderung.person.get_full_name }} (Legacy)
{% else %}
Unbekannter Empfänger
{% endif %}
</strong>
({{ foerderung.jahr }}, €{{ foerderung.betrag|floatformat:2 }}) löschen möchten?
</p>
</div>