The project folder structure contains two apps: teammanagement/ and base/
teammanagement coontains the general setup of the project, whereas base/ contains the app with the functionality for Team management application.
This file contains the database that stores each user in the database management app. The data gets pulled from this database and is displayed on the client side.
param Models.model : model
I am using Member model to store the data:
first_name: stores first name of the user
last_name: stores last name of the user
email: stores the users email address
phone: stores the users phone number
This file contains the url routing for the base application section of teammanagement app.
its consists of a list of url routes:
'' : base path that displays the MemberList (ListView)
'member/int:pk/' : displays MemberDetail (DetailView) and uses member.id as a int parameter
'member-create/' : displays MemberCreate (CreateView)
'member-update/int:pk/' : displays MemberUpdate (UpdateView) and uses member.id as a int parameter
'member-delete/int:pk/' : displays DeleteView and uses member.id as a int parameter
This file contains the views that display a response according to the url request mentioned in the urls.py file
It consists of multiple views:
param ListView : View
uses class-based and the member model to return members from database
param DetailView : View
uses class-based and member view to return each member
param CreateView : View
uses class-based and create view to create a new member
param UpdateView : View
uses class-based view and update view to update a member with specific id
param DeleteView : View
uses class-based and delete view to delete a member with specific id
consists of all the html code to display content from each view. Each view is selected according to the url routing mentioned in urls.py