portfolio logo

Improvement of a django project

15 / 09 / 2019

web project

The provided data was part of a weekend hackathon. At the first glance, the project was slow and hard to follow. The aim of this project was to identify inefficient parts of it and fix them.

The django-debug-toolbar was used to inspect places where database queries ran too long or hit the database too many times. In this regard, query time was optimized. Moreover, templates were checked to validate that inheritance worked properly. Models fields were inspected to validate that they are correctly set for the type of data they store. Forms' fields were inspected to check their correct usage and validation. Also, unit tests were writen to achieve a coverage above 75%.

# django #  python #  unittest #  web

check the source