chore: Add proper .gitignore to exclude venv and binaries
tiffank1802
27b71d1
total
tiffank1802
b420f36
feat: Implement Appwrite API integration for cloud-native database access
tiffank1802
4d37ab1
- Create Appwrite wrapper (appwrite_db.py) with methods for CRUD operations
- Add service layer (app_core/services.py) providing SpecialiteService, ActualiteService, ContactService, PartenairesService, StatistiqueService
- Update views.py to use service layer instead of Django ORM
- Create management commands:
- setup_appwrite_collections: Initialize Appwrite collections with proper schema
- seed_appwrite: Seed initial data into Appwrite collections
- Add test_appwrite_crud.py to verify all CRUD operations work correctly
- All tests pass: 3 specialites, 3 actualites, 3 partenaires, 3 statistiques, contact operations fully functional
- Data now persists in Appwrite cloud (5GB free tier) instead of ephemeral SQLite
Fix: Add initial data fixture and improve migration handling
tiffank1802
73e3d77
- Create app_core/fixtures/initial_data.json with sample specialties
- Add init_db management command for database initialization
- Update run.sh to load initial data after migrations
- Add loaddata step to startup sequence
- Increase gunicorn timeout to 120s
- Show full verbosity for migrations and static files collection