Jul 26, 2024
source insta/bin/activate
pip install Django djangorestframework
django-admin startproject Instagram
python manage.py startapp app
app
and rest_framework
urls.py
to include app's URLsuserID
(Primary Key)email
username
password
first_name
last_name
bio
(optional)created_at
updated_at
postID
(Primary Key)title
description
created_at
updated_at
user
(Foreign Key)commentID
(Primary Key)comment_text
created_at
updated_at
userID
(Foreign Key)postID
(Foreign Key)likeID
(Primary Key)userID
(Foreign Key)postID
(Foreign Key)followID
(Primary Key)userID
(Foreign Key)followeeID
(Foreign Key)AbstractUser
is_staff
, is_active
, is_superuser
)UserManager
) with methods to create users and superuserssettings.py
title
, description
, created_at
, updated_at
, user
userID
, postID
unique_together
comment_text
, created_at
, updated_at
, userID
, postID
userID
, followeeID
unique_together