Professional Documents
Culture Documents
Internet App / Distributed Sys Lab 3
Internet App / Distributed Sys Lab 3
Lab 3
As a student of the University of Windsor, we confirm that we will keep the content of this
assignment confidential. We confirm that we have not received any unauthorized assistance
in preparing for or writing this assignment. We acknowledge that a mark of 0 may be
assigned for copied work.
Submitted to Prof. Usama Mir
Group 06
f. Click Create
1. Once the project “grocsite” is created, click on Tools Run manage.py. After this, you
will see a console as follows:
In the console shown at the bottom of the above figure, do the following:
a) Create the project database
PART 3: Repeating the above process with the choice of your website.
Go to the following link https://www.netguru.com/blog/django-apps-examples
Choose any application you like from the 10 applications mentioned on the link
Repeat all the steps described in PART 2 for your selected application such as:
o Creating at least 3 classes in models.py (like you created type, item, and
client)
o One of the above classes should be the user or the client
o Each class should have variety of fields (Ex. Boolean, decimal, choice).
At least 4 fields in two classes
o Usage of foreignkey, default, null, and blank for the fields
Upload your models.py file on Brightspace
Answer: Among the ten projects, we have chosen Pinterest and have added four classes to
model.py: User, Board, Pin, and Image. CharField, BooleanField, URLField, as well as
foreign key, default null, and blank fields, are included in the class. The class we developed,
which mentions the field, is seen below.
class Pin:
pin_id
image
description
source_url
created_at
full_name
user
like_count
class Board
board_id
Name
description
created_at
pin
Url
class image
image_id
description
pin
url
uploaded_at