How mruzbek00/ccrm works
CCRM is a Django CRM for language-centre staff. Staff use server-rendered screens and JSON actions to register and manage students, track status and history, assign groups, and archive or restore profiles; branch-scoped access is enforced server-side. Separate admin workflows manage branches, reference options, statuses, and staff accounts, while the dashboard and workbook export provide reporting. The README documents the module boundaries and database flow; sampled source confirms browser requests and delegation, but most feature implementations were not sampled.
Main entry points: views.py Request handlers · models.py Domain models · js Staff browser · urls.py Route table
Components 17
Web interface
- Staff browser
crm_app/static/crm_app/js - Screen scripts
crm_app/static/crm_app/js/pages - Language layer
crm_app/static/crm_app/js/i18n.js - Route table
crm_app/urls.py - Request handlers
crm_app/views.py
Student lifecycle
- Student services
crm_app/students.py - Status pipeline
crm_app/student_statuses.py - History writer
crm_app/student_history.py
Centre operations
- Groups and schedules
crm_app/groups_admin.py - Dashboard metrics
crm_app/dashboard.py - Workbook export
crm_app/exports.py
Administration
- Branch options
crm_app/branches_admin.py - Staff accounts
crm_app/staff_accounts.py
Persistence
- Domain models
crm_app/models.py - SQLite database
crm_project/settings.py
Other components
- Centre staff
- XLSX download
Connections 23
- Centre staff → Staff browser: uses
- Staff browser → Route table: requests pages and data
- Screen scripts → Route table: fetches JSON and actions
- Language layer → Staff browser: localizes interface
- Route table → Request handlers: dispatches
- Request handlers → Student services: delegates student work
- Request handlers → Status pipeline: delegates status work
- Request handlers → Groups and schedules: delegates group work
- Request handlers → Dashboard metrics: delegates metrics
- Request handlers → Workbook export: delegates exports
- Request handlers → Branch options: delegates branch work
- Request handlers → Staff accounts: delegates account work
- Student services → Domain models: queries and updates
- Status pipeline → Domain models: maintains statuses
- History writer → Domain models: writes entries
- Groups and schedules → Domain models: queries and updates
- Dashboard metrics → Domain models: reads metrics data
- Workbook export → Domain models: reads export data
- Branch options → Domain models: queries and updates
- Staff accounts → Domain models: queries and updates
- Domain models → SQLite database: reads and writes
- Request handlers → XLSX download: returns download
- Staff browser → XLSX download: downloads