How baludbr/cheportal works
This is a Django portal for managing university compliance audits. Users sign in (with optional email-based two-factor verification), university staff complete questionnaire responses and upload evidence, and reviewers track submissions, request revisions, approve responses, and produce audit reports. The graph separates identity, audit workflows, persistence, and runtime configuration/integrations. Source excerpts are partial, so links among audit stages are limited to references shown in the index or excerpts; unsampled behavior is not inferred.
Main entry points: audit/views.py Audit workflows · accounts/views.py Sign-in and accounts · services.py Account services · base.py Base settings
Components 22
Identity and access
- Sign-in and accounts
accounts/views.py - Account forms
accounts/forms.py - Account services
accounts/services.py
Audit workflows
- Audit workflows
audit/views.py - Audit forms
audit/forms.py - Audit access control
audit/decorators.py - RAG client
audit/rag_service.py - Question bank import
audit/management/commands/import_question_bank.py
Domain data
- Users and universities
accounts/models.py - Audit records
audit/models.py - System audit log
accounts/models.py
Runtime and integrations
- Account routes
accounts/urls.py - Audit routes
audit/urls.py - Portal routing
che_portal/urls.py - Base settings
che_portal/settings/base.py - Development settings
che_portal/settings/dev.py - Production settings
che_portal/settings/prod.py
Other components
- Portal user
- Relational database
- S3 object storage
- Email service
- RAG service
Connections 26
- Portal user → Account routes: requests account access
- Account routes → Sign-in and accounts: routes to
accounts/urls.py - Sign-in and accounts → Account forms: validates credentials
accounts/views.py - Sign-in and accounts → Account services: logs actions
accounts/views.py - Sign-in and accounts → Users and universities: loads users
accounts/views.py - Account services → System audit log: writes events
accounts/services.py - Account services → Email service: sends notifications
accounts/services.py - Portal user → Portal routing: uses portal
- Portal routing → Audit workflows: routes to
che_portal/urls.py - Audit routes → Audit workflows: routes to
audit/urls.py - Audit workflows → Audit forms: validates responses
audit/views.py - Audit workflows → Audit access control: uses permissions
audit/views.py - Audit workflows → Audit records: reads and writes
audit/views.py - Audit workflows → Users and universities: loads user roles
audit/views.py - Audit workflows → Account services: logs and notifies
audit/views.py - Audit workflows → RAG client: requests RAG operations
audit/views.py - Question bank import → Audit records: imports questions
audit/management/commands/import_question_bank.py - Base settings → Users and universities: configures user model
che_portal/settings/base.py - Development settings → Base settings: extends
che_portal/settings/dev.py - Production settings → Base settings: extends
che_portal/settings/prod.py - Development settings → Relational database: configures MySQL
che_portal/settings/dev.py - Production settings → Relational database: configures SQLite
che_portal/settings/prod.py - Development settings → S3 object storage: configures S3
che_portal/settings/dev.py - Production settings → S3 object storage: configures local files
che_portal/settings/prod.py - Base settings → RAG client: sets service options
che_portal/settings/base.py - RAG client → RAG service: calls HTTP API
audit/rag_service.py