Skip to content

anndoc/milo-django-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local install guide

You should have python 3.6 installed

  1. Git clone from https://github.com/anndoc/milo-django-task
  2. Create a virtualenv:
    • virtualenv env/milo-env
    • source env/milo-env/bin/activate
  3. Run pip install -r requirements/local.txt
  4. Create .env file and copy data from env.example file
  5. Run python manage.py migrate
  6. Run python manage.py runserver and visit localhost:8000

Release notes

  • 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

Screenshots

List View

Detail View

About

Django task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published