How danielr81/gap works
GAP is a Django application for preparing privacy notices (Avisos de Privacidad) through a saved, multi-section questionnaire. Users sign in, create or continue a questionnaire, complete its sections, and can generate integral or simplified notice documents. The application also supports selecting an obligated entity from a hierarchical registry and managing questionnaire-related records. The graph reflects the sampled source and SOURCE INDEX references; where browser-to-server wiring or unsampled implementation details are not established, relationships are omitted or marked unverified.
Main entry points: cuestionario.py Questionnaire workflow · main.js Browser entry · base.py Django settings · sections Section interactions
Components 22
Accounts
- Account views
GAP/apps/usuarios/views.py - Account forms
GAP/apps/usuarios/forms.py - User model
GAP/apps/usuarios/models.py - Account routes
GAP/apps/usuarios/urls.py
Questionnaire
- Questionnaire routes
GAP/apps/cuestionarios/urls.py - Questionnaire workflow
GAP/apps/cuestionarios/views/cuestionario.py - Section forms
GAP/apps/cuestionarios/forms.py - Questionnaire records
GAP/apps/cuestionarios/models.py - Section handlers
GAP/apps/cuestionarios/views - Entity registry API
GAP/apps/padronso/views.py - Entity hierarchy
GAP/apps/padronso/models.py - Registry routes
GAP/apps/padronso/urls.py
Notice generation
- Notice endpoints
GAP/apps/servicios/views.py - Document generator
GAP/apps/servicios/models.py
Browser interface
- Browser entry
GAP/static/js/main.js - Section navigation
GAP/static/js/ui/navigation.js - Message UI
GAP/static/js/ui/messages.js - Section interactions
GAP/static/js/sections - Registry selector
GAP/static/js/padronso.js
Other components
- User
- Django settings
GAP/config/settings/base.py - SQLite database
Connections 23
- User → Account routes: opens account
- Account routes → Account views: routes requests
- Account views → Account forms: uses forms
GAP/apps/usuarios/views.py - Account forms → User model: validates against
GAP/apps/usuarios/forms.py - Django settings → User model: sets user model
GAP/config/settings/base.py - Django settings → Questionnaire routes: sets root routing
- User → Questionnaire routes: opens questionnaire
- Questionnaire routes → Questionnaire workflow: routes requests
GAP/apps/cuestionarios/urls.py - Questionnaire workflow → Section forms: builds forms
GAP/apps/cuestionarios/views/cuestionario.py - Questionnaire workflow → Questionnaire records: reads and saves
GAP/apps/cuestionarios/views/cuestionario.py - Section forms → Questionnaire records: models fields
GAP/apps/cuestionarios/forms.py - Questionnaire workflow → Section handlers: dispatches sections
- Django settings → SQLite database: configures SQLite
GAP/config/settings/base.py - Registry routes → Entity registry API: routes requests
GAP/apps/padronso/urls.py - Entity registry API → Entity hierarchy: queries hierarchy
GAP/apps/padronso/views.py - Notice endpoints → Questionnaire records: loads questionnaire data
GAP/apps/servicios/views.py - Notice endpoints → Document generator: builds notice document
GAP/apps/servicios/views.py - Browser entry → Section navigation: initializes
GAP/static/js/main.js - Browser entry → Message UI: initializes
GAP/static/js/main.js - Browser entry → Section interactions: loads section module
GAP/static/js/main.js - Section interactions → Message UI: shows messages
GAP/static/js/sections/section3.js - Registry selector → Registry routes: requests registry data
- Section interactions → Questionnaire workflow: submits section data