August 2016
Beginner to intermediate
717 pages
15h 24m
English
To create models, we must have already studied the application in depth. Models are the basis of any application because they will store all the data. Therefore, we must prepare them carefully.
Concerning our Tasksmanager application, we need a user who saves tasks performed on a project. We'll create two models: User_django and Project.
We need to store our models in the models.py file. We will edit the models.py file in the TasksManager folder. We do not need to modify the configuration file, because when you need the model, we will have to import it.
The file already exists and has a line. The following line allows you to import the base model of Django:
from django.db import models
To create the UserProfile ...
Read now
Unlock full access