Skip to content

python-force/improve-django-project-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Improve Django Project 3

Installation

  1. python3 -m venv venv / virtualenvwrapper / or create your own Virtual Environment
  2. activate the venv
  3. pip install -r requirements.txt
  4. python manage.py migrate

Important:

  1. Make sure you clear all your cache
  2. Make sure you clear all your cookies for localhost / 127.0.0.1
  3. python manage.py runserver

We spent a weekend doing a hackathon a year or so ago and someone built this project. It's...not the best. It runs kind of slow and has been a real pain to debug and add onto. We need you to go through the project, find where it's inefficient, and fix it. Check the templates for bad inheritance and extra database calls. Check the views for extra views or extra database calls. Check the models to make sure they're using the best fields. Check the forms for proper validation and fields. Basically just check the whole thing over. Oh, and it doesn't have any tests, so please get test coverage up to at least 75%.

App Features

  • Use the provided requirements.txt to install needed packages for the project.
  • Use django-debug-toolbar to find places where database queries run too long or hit the database too many times.
  • Use django-debug-toolbar to find places where templates aren't properly using inheritance.
  • Check that models are using appropriate fields for the type of data they store. If not, correct them and create migrations to handle the data.
  • Check that forms are using the correct fields and validation. If not, fix.
  • Use coverage.py to check the code coverage amount. Write tests to increase test coverage to at least 75%.
  • Increase test coverage to 90% or above.
  • Decrease combined query time on all views to 60ms or less.
  • Add migrations to correct existing data when data types change.
  • Add custom form validators

About

Improve Django Project 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published