December 2018
Intermediate to advanced
374 pages
11h 39m
English
The to-do manager service is the service that will help our users manage their todo items. This service provides the functionality for the user to create a new list and add items to the list. For this, the only requirement is that the user should be authenticated.
To work correctly, the service will require the presence of a list database model, which will be used to store the information about the user-created todo list and an items model, which will contain the list of items for a particular todo list.
The following snippet of code implements these models:
'''File: models.pyDescription: The models for the todo service.'''from todo_service.todo_service import dbimport datetimeclass List(db.Model): """The list database ...
Read now
Unlock full access