📋 Aletheia - Quick Reference¶
🔄 Reset Test Data (Most Common Task)¶
# Quick reset everything
./scripts/docker-reset-test-data.sh --yes
# Reset only dentists
./scripts/docker-reset-test-data.sh --dentists-only --yes
# Reset only patients
./scripts/docker-reset-test-data.sh --patients-only --yes
📥 Import Testing Workflow¶
# 1. Reset data
./scripts/docker-reset-test-data.sh --yes
# 2. Go to import page
# http://localhost:8000/imports/dentists/
# http://localhost:8000/imports/patients/
# 3. Download template, fill data, upload
# 4. If errors, download error file and fix
# 5. Repeat from step 1
🐳 Docker Commands¶
# Start services
docker compose up -d
# View logs
docker compose logs -f web
# Run Django command
docker compose exec web python manage.py [command]
# Access shell
docker compose exec web python manage.py shell
# Run migrations
docker compose exec web python manage.py migrate
# Create superuser
docker compose exec web python manage.py createsuperuser
📚 Documentation¶
- IMPORTS_MODULE.md - Import system overview
- IMPORTS_IMPROVEMENTS.md - Recent improvements
- RESET_TEST_DATA.md - Reset tools documentation
- QUICK_RESET_GUIDE.md - Quick reset reference
- SESSION_SUMMARY.md - Latest session summary
🌐 URLs¶
- Dashboard: http://localhost:8000/
- Admin: http://localhost:8000/admin/
- Imports: http://localhost:8000/imports/
- Dentist Import: http://localhost:8000/imports/dentists/
- Patient Import: http://localhost:8000/imports/patients/
🎯 Import Performance¶
| Rows | Time (Bulk Mode) |
|---|---|
| 100 | ~2 seconds |
| 500 | ~2-3 seconds |
| 1000 | ~3-4 seconds |
| 5000 | ~10 seconds |
Note: Bulk mode activates automatically at 100+ rows
🔧 Useful Management Commands¶
# Reset test data
docker compose exec web python manage.py reset_test_data --help
# Check imports
docker compose exec web python manage.py shell -c "from apps.imports.models import Import; print(Import.objects.count())"
# Count records
docker compose exec web python manage.py shell -c "
from apps.dentists.models import Dentist
from apps.patients.models import Patient
print(f'Dentists: {Dentist.objects.count()}')
print(f'Patients: {Patient.objects.count()}')
"
Pro Tip: Keep this file open in a terminal while testing! 🚀