How chriswinjoseph/srfu-opportunity-system works
Safe Roads For Us is a Django application combining email-based authentication and role-based user administration with an outreach-management workflow. Users sign in, manage organisations and opportunities, prepare and review email drafts, then record outreach and outcomes. Outreach also includes data-import and scraping tools. The graph preserves these major areas; unsampled modules are represented by their exact file or enclosing directory paths. Some links rely on the SOURCE INDEX or README rather than inspected implementation, so uncertain relationships are omitted.
Main entry points: outreach/views.py Outreach views · accounts/views.py Sign-in and reset · models.py User and roles · user_views.py User management
Components 22
Accounts and access
- Sign-in and reset
accounts/views.py - Auth forms
accounts/forms.py - User and roles
accounts/models.py - Role permissions
accounts/roles.py - User management
accounts/user_views.py - Account operations
accounts/services.py - First-admin setup
accounts/management/commands/create_first_admin.py
Outreach operations
- Outreach views
outreach/views.py - Organisations and opportunities
outreach/models.py - Outreach forms
outreach/forms.py - Status transitions
outreach/status_transitions.py
Email workflow
- Approval checks
outreach/approvals.py - Email workflow UI
outreach/email_ui.py - Draft generation and validation
outreach/services.py - Approved templates and drafts
outreach/models.py
Data and integrations
- SQLite database
- Data import commands
outreach/management/commands - Scraper
outreach/scraper.py - Scraper command
outreach/management/commands/run_scraper.py
Other components
- User
- OpenAI API
- Email delivery
Connections 24
- User → Sign-in and reset: signs in
README.md - Sign-in and reset → Auth forms: validates with
accounts/views.py - Sign-in and reset → User and roles: authenticates
accounts/views.py - User → User management: manages users
README.md - User management → Account operations: invokes operations
accounts/user_views.py - User management → Auth forms: uses forms
accounts/user_views.py - Account operations → User and roles: updates accounts
accounts/services.py - User and roles → Role permissions: checks permissions
accounts/models.py - First-admin setup → Account operations: creates invitation
accounts/management/commands/create_first_admin.py - Sign-in and reset → Email delivery: sends reset email
README.md - User → Outreach views: uses outreach
outreach/views.py - Outreach views → Outreach forms: validates with
outreach/views.py - Outreach views → Organisations and opportunities: reads and updates
outreach/views.py - Outreach views → Status transitions: delegates transitions
outreach/views.py - Outreach views → Approval checks: checks approvals
outreach/views.py - Outreach views → Email workflow UI: uses presentation
outreach/views.py - Outreach views → Draft generation and validation: requests generation
outreach/views.py - Email workflow UI → Approved templates and drafts: presents draft state
- Draft generation and validation → OpenAI API: generates email
outreach/services.py - Organisations and opportunities → SQLite database: stores records
README.md - User and roles → SQLite database: stores accounts
README.md - Approved templates and drafts → SQLite database: stores drafts
outreach/models.py - Data import commands → Organisations and opportunities: imports records
outreach/management/commands/import_bank_contacts.py - Scraper command → Scraper: runs scraper
outreach/management/commands/run_scraper.py