mdk.fr/content/pages/supinternet_django_habits.md
2021-10-05 19:18:30 +02:00

1.7 KiB

status: hidden title: Python — Django — Habits Tracker slug: ao8Taifu-django robots: noindex

Habits Tracker

The project name is django-habits-tracker, follow the return protocol in great details, any failures to follow the protocol will cost points.

Create a Django project named proj containing a single app named habits.

Features needed

  • A user can sign-in¹.
  • A user can log-in and log-out.
  • A user can manage a list of habits².
  • One user can't see other user habits, habits can be very personal information.
  • A user can easily mark a habit as done when he does it.
  • A user can edit or remove a habit.
  • A user can see an overview of how well it did the habits.
  • A user should easily see what he show do now (habit running late) or if everything's done.
  1. Read the doc properly, Django already provides a user creation form handling password validation password hashing for you.
  2. A habit is something like "Run at least once every other day", or "Bake a brioche once a month", "Tech watch twice a week", ...

So you'll need to find a way, given a habit description and a list of when he did it in the past, to score the user "fitness to the habit".

Admin zone

The superuser should be able to easily see, modify, and delete the habits and when they've been done.

Bonus

A nice front-end.

Hints

Reading the Django tutorial, my slides, and the hackinscience source code should be enough for this project.