A Django-powered scientific calculator with support for arithmetic, trigonometry, and other math functions.
It evaluates expressions safely on the backend and keeps a history of recent calculations.
- Safe evaluation of math expressions (
+ - * / ^,sin,cos,sqrt,pi,e, etc.) - History of recent calculations stored in the database
- Responsive frontend (AJAX updates without page reloads)
- Admin panel to view stored calculations
- Static file handling via WhiteNoise
- Ready for deployment with Gunicorn + Nginx
- Python 3.10+
- Django 5.2
- WhiteNoise for static files
- Gunicorn + Nginx (production)
- SQLite (default), easily switchable to PostgreSQL
Clone the repo and create a virtual environment:
git clone https://github.com/helooselassie/calcsite.git
cd calcsite
# create & activate virtual environment
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# install dependencies
pip install -r requirements.txt