This is a simple library management system built for Major Project 2021 by Abhik Bhattacharya (id : 181001102058) & Saikat Shee (id : 181001102053 )
This project is built with :
, , , , ,
login / signup ,
can request book
see their own issues and filter them based on :
check their own fines
can see
Pay their fines online (powered by RazorPay)
login to admin dashboard
check all issues :
filter issues based on :
accept a issue :
add , delete search books and filter books based on author
add , delete , search author
calculate fine by clicking a button ,
create, delete fine ,search fines for studentid
toggle fine paid status (if paid in cash)
search ,modify,add,delete students , filter them based on department and check all fines and issues of that student
can see the last-login , date joined & the student associated to a particular user
can change password for any user
issued
, issue requested
or request issue
based on whether the book is issued or requested for a issue or is not requested for logged-in students onlyWe need this for writing our authentication views as well as student & department models. Student model has the first+last name ,department foreignkey and studentID which is one-to-one field to Django' User model. We use Django's User Model for authentication . There will be 3 views: login,signup and logout. The urls will have /student/< login or signup or logout >/
.
This is our main app where we will write our library system's main logic. It comprises of 4 models:
Student ID - Username of Django's User Model serves as our studentID
Signing Up - so every student who signs up creates a new user instance with his/her student id as the username and then a student instance is also created with the names and department and this user we just created.
Calculating Fine - How ?? - We run a for loop and pass all the issues to this calculate fine function. Then:
for each issue , check whether the issue is issued or not (if issue is not issued then no need to calculate fines)
if issue is issued then check whether issue is returned or not (if issue is returned then no need to calculate fines)
if issue is not returned then check whether the issue's return date is passed or not (if not passed then no calculation of fines is needed)
Calculating Fine - When ?? -
Payment of Fines
Signup Page
Login Page
If Student ID already signed up
Home Page for student
Search Book
Search Author
My Issues
My Fines
Confirm Payment
Choose Payment Modes
Pay Success
Admin Dashboard
All Books (Admin)
All issues , can be filtered ,searched (Admin)
Requested Issues (Admin)
All fines , can be filtered ,searched (Admin)
All Students , can be filtered ,searched (Admin)
Student Details (Admin)
User Details (Admin) 19