Django web app for tracking daily stove sales, production output, worker earnings, investor shares, and profit calculations.
The app is designed for a small production/sales workflow where staff record product sales, workers log production quantities, and investors can view their earnings.
- Staff sale entry with product, quantity, and total sale price
- Product-level base cost and master/worker fee configuration
- Investor share tracking based on profit after base cost
- Worker production logs with per-product pay rates
- Staff revenue dashboard for today, this week, this month, and all-time sales
- Investor and worker dashboards with daily and weekly earnings
- Uzbek-language interface and messages
- Local SQLite development with
DATABASE_URLsupport for PostgreSQL deployments
Screenshots use local demo data.
- Python
- Django 5
- SQLite for local development
- PostgreSQL-compatible deployment through
dj-database-url - Gunicorn and WhiteNoise for production serving
Product
-> Sale
-> WorkerPayRate
-> ProductionLog
User
-> Investor
-> Worker
Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activateInstall dependencies:
pip install -r requirements.txtCreate a local environment file:
cp .env.example .envRun migrations and create an admin user:
python manage.py migrate
python manage.py createsuperuserStart the development server:
python manage.py runserverThen open:
http://127.0.0.1:8000/
| Variable | Required | Description |
|---|---|---|
DJANGO_SECRET_KEY |
Yes | Django secret key for the environment |
DJANGO_DEBUG |
No | Set to True for local development |
ALLOWED_HOSTS |
No | Comma-separated hostnames, defaults to localhost |
DATABASE_URL |
No | PostgreSQL connection URL for deployment |
Local database files are intentionally ignored. Use migrations and seed/admin data instead of committing db.sqlite3.
MIT. See LICENSE.