How hache231/hydroportail works
Hydroportail is a Django water-station geoportal with account registration and login, protected portal pages, geographic filtering, and station-data APIs. Users authenticate or register, then access the portal; map and API views query station and administrative-area models and return rendered pages or JSON. Separate catalog models capture station types, products, sources, and services, while Django admin provides import/export-enabled management. The graph follows the excerpted routes and calls; templates and project-level URL wiring are not shown, so their relationships are omitted.
Main entry points: accounts/views.py Account workflows · admin.py Import/export admin · geoportal/views.py Portal and API views · models.py Stations and geography
Components 12
Accounts
- Account routes
accounts/urls.py - Account workflows
accounts/views.py - Account forms
accounts/forms.py - Visitor profiles
accounts/models.py
Geoportal
- Geoportal routes
geoportal/urls.py - Portal and API views
geoportal/views.py
Geo Data
- Stations and geography
geoportal/models.py - Station catalogs
geoportal/models.py
Administration
- Import/export admin
geoportal/admin.py
Other components
- Portal visitor
- Django authentication
- Import-export package
Connections 12
- Portal visitor → Account routes: opens account
accounts/urls.py - Account routes → Account workflows: routes requests
accounts/urls.py - Account workflows → Account forms: uses forms
accounts/views.py - Account workflows → Django authentication: authenticates users
accounts/views.py - Account workflows → Visitor profiles: creates profile
accounts/views.py - Portal visitor → Geoportal routes: opens portal
- Geoportal routes → Portal and API views: routes requests
geoportal/urls.py - Portal and API views → Stations and geography: queries stations
geoportal/views.py - Portal and API views → Stations and geography: queries areas
geoportal/views.py - Import/export admin → Stations and geography: manages records
geoportal/admin.py - Import/export admin → Station catalogs: manages catalogs
geoportal/admin.py - Import/export admin → Import-export package: uses package
geoportal/admin.py