How mazenshalaby/tumotect-backend works
This is a Django/DRF healthcare backend centered on patient and doctor accounts, appointment scheduling, and related patient services. Clients enter through the app’s URL routes; view handlers perform API operations using serializers and Django models, with state persisted by Django’s configured database. Separate API branches support history, photo uploads, alarms, login, and password recovery. The excerpts show these domain capabilities and model relationships, but do not establish the project-level URL mount or database configuration, so those connections are omitted.
Main entry points: admin.py Django admin · urls.py App routes · views.py Patient services API · serializers.py API serializers
Components 14
API layer
- App routes
customize/urls.py - Account API
customize/views.py - Care API
customize/views.py - Patient services API
customize/views.py - Login and reset API
customize/views.py - API serializers
customize/serializers.py
Accounts and profiles
- Users and profiles
customize/models.py
Care services
- Availability and bookings
customize/models.py - Previous history
customize/models.py - Uploaded photos
customize/models.py - Medication alarms
customize/models.py
Administration
- Django admin
customize/admin.py - Account forms
customize/forms.py
Other components
- API client
Connections 21
- API client → App routes: sends requests
- App routes → Account API: routes account
customize/urls.py - App routes → Care API: routes care
customize/urls.py - App routes → Patient services API: routes services
customize/urls.py - App routes → Login and reset API: routes auth
customize/urls.py - Account API → API serializers: uses serializers
customize/views.py - Care API → API serializers: uses serializers
customize/views.py - Patient services API → API serializers: uses serializers
customize/views.py - Account API → Users and profiles: reads and writes
customize/views.py - Care API → Availability and bookings: reads and writes
customize/views.py - Patient services API → Previous history: reads and writes
customize/views.py - Patient services API → Uploaded photos: reads and writes
customize/views.py - Patient services API → Medication alarms: reads and writes
customize/views.py - Login and reset API → Users and profiles: authenticates users
customize/views.py - API serializers → Users and profiles: serializes user data
customize/serializers.py - Django admin → Account forms: uses forms
customize/admin.py - Account forms → Users and profiles: creates profiles
customize/forms.py - Django admin → Availability and bookings: administers bookings
customize/admin.py - Django admin → Previous history: administers history
customize/admin.py - Django admin → Uploaded photos: administers uploads
customize/admin.py - Django admin → Medication alarms: administers alarms
customize/admin.py