How whoiskhairul/dbw works
DWT is a Django/DRF service for discovering geospatial records about schools, childcare centers, school social work, and youth employment support. Its main flow routes API or testing requests to facility views, which query stored records and serialize GeoJSON or facility data. A separate workflow imports facility records from ArcGIS; authenticated endpoints support user profiles, favourites, and directions. The source excerpts establish these calls, but do not show the full settings or all endpoint behavior, so uncertain wiring is omitted.
Main entry points: testapp/views.py Facility views · urls.py Project routes · authapp/views.py User views · models.py Facility records
Components 13
Request routing
- Project routes
DWT/urls.py - Testing routes
testapp/urls.py - Auth routes
authapp/urls.py
Facility discovery
- Facility views
testapp/views.py - Facility records
testapp/models.py - Facility serializers
testapp/serializers.py
Accounts
- User views
authapp/views.py - User records
authapp/models.py - User serializers
authapp/serializers.py - Registration serializer
authapp/serializers.py
Data ingestion
- ArcGIS services
- Facility importer
testapp/views.py
Other components
- HTTP client
Connections 15
- HTTP client → Project routes: sends request
DWT/urls.py - Project routes → Facility views: routes API
DWT/urls.py - Project routes → Testing routes: includes routes
DWT/urls.py - Project routes → Auth routes: includes routes
DWT/urls.py - Testing routes → Facility views: routes requests
testapp/urls.py - Auth routes → User views: routes requests
authapp/urls.py - Facility views → Facility records: queries records
testapp/views.py - Facility views → Facility serializers: serializes records
testapp/views.py - Facility views → ArcGIS services: requests GeoJSON
testapp/views.py - Facility views → Facility records: creates records
testapp/views.py - User views → User records: loads user
authapp/views.py - User views → User serializers: serializes user
authapp/views.py - Registration serializer → User records: saves user
authapp/serializers.py - Facility views → User records: updates favourite
testapp/views.py - Facility views → Facility records: looks up destination
testapp/views.py