feat: Add complete Verpachtung management system

- Add LandVerpachtung model with Land and Paechter relationships
- Implement full CRUD operations for Verpachtungen
- Add responsive Bootstrap templates with JavaScript calculations
- Integrate document linking functionality similar to other entities
- Add navigation links and URL patterns
- Include CSV import support for Paechter data
- Fix template encoding issues for proper UTF-8 support
- Enhance administration interface with Verpachtung CSV import

This implements the complete Verpachtung management feature requested,
allowing users to manage land lease agreements with proper relationships
to properties (Laenderei) and tenants (Paechter), following the same
patterns as Foerderung/Destinataer relationships.
This commit is contained in:
Stiftung Development
2025-09-15 21:18:01 +02:00
parent c8bef800c8
commit 4be6be203e
14 changed files with 1743 additions and 127 deletions

View File

@@ -1,6 +1,32 @@
# Stiftung Application
A comprehensive Django-based foundation management system with modern features and automated deployment.
A## 🏃‍♂️ Quick Start
### Development Environment
For local development, use the development Docker Compose configuration:
```bash
# Start development environment (uses hardcoded dev settings)
docker-compose -f compose.dev.yml up -d
# Run migrations
docker-compose -f compose.dev.yml exec web python manage.py migrate
# Create superuser
docker-compose -f compose.dev.yml exec web python manage.py createsuperuser
# Access applications
# - Django: http://localhost:8081
# - Paperless: http://localhost:8082
# - Database: localhost:5433
```
### Production Deployment
Production deployment uses the main `compose.yml` and is handled automatically via GitHub Actions. The production environment reads configuration from the server's `.env` file (not included in the repository for security).
## 🏗️ Architecturengo-based foundation management system with modern features and automated deployment.
## 🌟 Features
@@ -27,21 +53,30 @@ A comprehensive Django-based foundation management system with modern features a
```bash
# Clone repository
git clone https://github.com/yourusername/stiftung-starter.git
cd stiftung-starter
git clone https://github.com/remmerinio/stiftung-management-system.git
cd stiftung-management-system
# Start development environment
docker-compose up -d
# Start development environment (isolated from production)
docker-compose -f compose.dev.yml up -d
# Create superuser
docker-compose exec web python manage.py createsuperuser
docker-compose -f compose.dev.yml exec web python manage.py createsuperuser
# Access application
open http://localhost:8000
open http://localhost:8081 # Django app
open http://localhost:8080 # Paperless-ngx (admin/admin123)
```
### Production Deployment
Production uses automated deployment via GitHub Actions. The production environment has its own `.env` file with secure credentials that is not stored in Git.
**For Production:**
- Environment variables are configured on the server
- HTTPS is enabled with Let's Encrypt certificates
- Database users are manually configured for security
- Automated deployments preserve manual configurations
See [deployment documentation](deploy-production/MIGRATION_PLAN.md) for complete setup instructions.
## 📁 Project Structure