Django Calculator
This is one of those apps that every ‘Beginner Projects for Django’ blogs suggest, as it helps in understanding how models, views, forms and html pages work together.
I ran into a lot of errors while making it, and it really did help me understand how these core basics all work together. It also taught me how to Google more efficiently - there was terminology that I hadn’t encountered before, and I had to figure out what exactly I wanted.
Aim:
To create a basic calculator app which given an input of 1 or 2 numbers, outputs the specified operation, and also displays the previous calculations
Progress:
- The calculator performs the operations coded for successfully
- It displays the results on a separate page, which also shows the last 5 successful operations.
- Validation: It checks for valid numbers, and handles the errors accordingly. (An example of this would be when 2 numbers are provided for the Factorial option - An appropriate message should be shown)
- Successfully deployed on Pythonanywhere
Future Plans:
- Extend for multiple operations
- Provide an option for the number of previous results to be displayed.
- Provide better styling
Technology Used:
- Django Framework
- Python
Deployment:
The app has been successfully deployed here.