You should have python 3.6 installed
- Git clone from https://github.com/anndoc/milo-django-task
- Create a virtualenv:
virtualenv env/milo-env
source env/milo-env/bin/activate
- Run
pip install -r requirements/local.txt
- Create
.env
file and copy data fromenv.example
file - Run
python manage.py migrate
- Run
python manage.py runserver
and visitlocalhost:8000
-
Set up a basic latest Django installation
-
Extend the User model to have
- a birthday field of type date
- a random number field of type integer that is assigned a value from 1-100 on creation
-
Create views for: list of all users, viewing, adding, editing and deleting a single user
-
Create two template tags:
- a tag that will display "allowed" if the user is > 13 years old otherwise display "blocked"
- a tag that will display the BizzFuzz result of the random number that was generated for the user. The BizzFuzz specification is that for multiples of three print "Bizz" instead of the number and for the multiples of five print "Fuzz". For numbers which are multiples of both three and five print "BizzFuzz"
- add a column to the list view after the birthday column that uses the allowed/blocked tag
- add a column to the list view after the random number column that uses the BizzFuzz tag
-
Unit tests
-
Optional task: Create a download link on the list view. The link would return the list of results in Excel's format