B Tech Project Report 1
B Tech Project Report 1
by
Certificate
This is to certify that the B. Tech final year project report titled “Social
Warrior” being submitted by Anand Gupta (2003600100019),Harsh
Vishwakarma (2003600100051),Muskan Maurya (2003600100067)
&Raj Chaudhary (2003600100080) for the award of B. Tech Final
year Project in Bachelor of Technology in Computer Science &
Engineering is a record of bona fide work carried out by him under my
guidance and supervision at the Department of Computer Science &
Engineering. The work presented in this report has not been submitted
elsewhere either in part or full to the best of my knowledge, for the award of
any other degree or diploma.
(Signature)
Ms. Prachi Yadav
Assistant Professor
Department of Computer Science and Engineering
Goel Institute of Technology & Management
(Affiliated to Dr. A.P.J Abdul Kalam Technical University, Lucknow)
Department of Computer Science and
Engineering
DECLARATION
I hereby declare that the project entitled “Social Warrior” submitted in
partial fulfillment of the requirements for the degree of Bachelor of Tech-
nology in Computer Science and Engineering at Goel Institute of
Technology & Management, Lucknow, is an original work carried out
by me under the supervision of Ms. Prachi Yadav, Assistant Professor
.
I further declare that this project has not been submitted earlier for the
award of any other degree or diploma to the best of my knowledge and belief.
I take full responsibility for any plagiarism or unethical practices that
may be found in the project report.
All the references and sources of information used in this project have
been duly acknowledged.
Signature
Anand Gupta (2003600100019)
Signature
Harsh Vishwakarma (2003600100051)
Signature
Muskan Maurya (2003600100067)
Signature
Raj Chaudhary (2003600100080)
3
Abstract
Acknowledgments
I would like to express our sincere gratitude and appreciation to all those
who have contributed to the successful completion of this project.
First and foremost, I extend our heartfelt thanks to our supervisor, Ms.
Prachi Yadav , Assistant Professor , for his invaluable guidance, constant
support, and encouragement throughout the project. His expertise, insightful
feedback, and constructive criticism have been instrumental in shaping this
work.
I are also grateful to the faculty members of the Department of Computer
Science and Engineering for their teachings and insights that have enriched
our knowledge and skills.
I would like to acknowledge our friends and classmates for their assistance,
motivation, and cooperation during the project. Their valuable suggestions
and discussions have been a source of inspiration and improvement.
Lastly, I extend our heartfelt thanks to our families for their unwaver-
ing support, understanding, and encouragement throughout our academic
journey.
I are truly grateful to all those who have directly or indirectly contributed
to this project, and I acknowledge their valuable contributions.
Anand Gupta
Roll No : 2003600100019
Harsh Vishwakarma
Roll No : 2003600100051
Muskan Maurya
Roll No : 2003600100067
Raj Chaudhary
Roll No : 2003600100080
Contents
1 Introduction 8
1.1 Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.1.1 Environmental Problems . . . . . . . . . . . . . . . . . 8
1.1.2 Impacts of Environments . . . . . . . . . . . . . . . . . 10
1.1.3 How Social Media helps increasing environmental aware-
ness . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.2 Contribution of Social Warrior in Solving Environmental Prob-
lems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.3 The Contributions of Individuals to Societal Betterment . . . 18
1.4 Problem Statements . . . . . . . . . . . . . . . . . . . . . . . 20
1.5 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4 Implementation 37
4.1 General Zone: . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.1.1 Code:- . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.1.2 Snapshot:- . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.2 Public Zone: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4.2.1 Code:- . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
4.2.2 Snapshot :- . . . . . . . . . . . . . . . . . . . . . . . . 75
4.3 Servant Zone: . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.3.1 Code:- . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.3.2 Snapshot:- . . . . . . . . . . . . . . . . . . . . . . . . . 90
4.4 Supervisor Zone: . . . . . . . . . . . . . . . . . . . . . . . . . 92
4.4.1 Code:- . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
4.4.2 Snapshot:- . . . . . . . . . . . . . . . . . . . . . . . . . 101
Bibliography 105
List of Figures
4.1 Login . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.2 Registration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
4.3 Forget Password . . . . . . . . . . . . . . . . . . . . . . . . . . 47
4.4 Home page . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
4.5 Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
4.6 Donation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
4.7 Post Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
4.8 Create Post . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
4.9 Post Donation . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
4.10 Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
4.11 Change Profile . . . . . . . . . . . . . . . . . . . . . . . . . . 78
4.12 Servant Dashboard . . . . . . . . . . . . . . . . . . . . . . . . 90
4.13 Top Social Person . . . . . . . . . . . . . . . . . . . . . . . . 90
4.14 Add Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
4.15 Your Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
4.16 Supervisor Home page . . . . . . . . . . . . . . . . . . . . . . 101
4.17 View Servent . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
4.18 Complain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Chapter 1
Introduction
1.1 Environment
The physical, chemical, and biological elements that surround an organism
are all included in the term ”environment.” Ecosystems are formed when
these elements interact with one another and with living things. In addition
to man-made components like highways, buildings, pollution, and garbage,
the environment also consists of natural elements including air, water, soil,
sunlight, and climate. Maintaining biodiversity and enabling life on Earth
depend on our ability to comprehend and safeguard the environment.
2. Animals: All around the world, the environment has a profound im-
pact on how animals live and behave. The loss and deterioration of
habitat brought on by human activities like urbanisation, agriculture,
and deforestation is one major effect. It becomes more difficult for
animals to obtain food, shelter, and appropriate reproductive grounds
when their natural environments get smaller. In addition to isolating
populations and decreasing genetic diversity, habitat loss causes frag-
mentation, which increases a species’ susceptibility to extinction.
There have been both long- and short-term cycles of climate change,
many of which have been abrupt and intense. The average global air
temperature has increased by [4] 1.1 ºF during the past 30 years, and
it is currently 1.4 ºF higher than it was at the beginning of the 20th
century. By 2100, average world temperatures are projected to have
increased by an additional [4] 2 to 11.5 ºF (Intergovernmental Panel on
Climate Change (IPCC), (2007). The main cause for concern is that
greenhouse gases produced by burning fossil fuels, which releases CO2
and methane into the atmosphere, are anthropogenic, or created by
humans.The ability of forests to store carbon is diminished by defor-
estation, resulting in the atmospheric release of carbon. Global warm-
ing is the effect of the gases, particularly CO2, acting as a blanket to
slow down the rate at which the Earth’s surface can radiate heat into
space. Because of this, there is currently more carbon dioxide in the
atmosphere than there has been in the previous 6,50,000 years.
economy that was globalised throughout this time. But the deep,
persistent, and widespread poverty that exists in our nation has
always been a cause for concern. In actuality, a sizable portion of
the nation’s population lacks access to basic services like financial
services, food, clean water to drink, medical care, and sanitation,
making the minimum standard of living unachievable for them.
This is primarily because of years of centralised development and
unequal income distribution.
The Socio- Economic Caste Census, [7]2011 released several worry-
ing details on India’s poverty. The important points of the SECC
were as below:
(a) In India, there were [7]24.39 crore (243.9 million) households,
of which 17.91 crore (179.1 million) were village dwellers.
Among those,10.69 crore families were deemed to be impov-
erished.
(b) .37 crore (29.97%) of rural households were ”landless, with
manual labour accounting for a major portion of their in-
come.”
(c) [7]3.86 crore, or 21.53% of the families residing in villages, are
classified as SC/ST.
(d) 56% of rural homes in India were devoid offarmland
(e) 74.5% (13.34 crore) of rural households used to survive on a
monthly income of Rs 5,000 for their highest earner.
• Unemployment:- It makes sense that giving everyone access to
a basic income would be emphasised heavily in talks on economic
measures designed to promote social fairness. The unemployed,
who are assumed to have no source of support, are given special
attention in this situation. The topic of how many people are un-
employed in the nation emerges. The Planning Commission used
to provide unemployment figures until recently.
One significant problem that still plagues India’s economy is un-
employment. Being one of the most populated countries in the
world with a diverse labour force, changes in the unemployment
rate have a significant impact on the expansion and advancement
of the nation. What is India’s current unemployment rate, then?
In January 2024, there was a significant decline in the unemploy-
ment rate. The Centre for Monitoring Indian Economy (CMIE),
an independent research tank, released its most recent data, which
shows that [3]6.8% of Indian workers were unemployed in January.
India’s jobless rate dropped by 1.9 percent in a single month from
8.7 percent in December of the previous year.In the preceding six-
1.1 Environment 13
1. This Job Portal website is providing to the online job portal system.
4. The Job Portal web application can be used by any employee to apply
job and any employer are post to job.
• Spread Awareness: It’s critical to voice your views and ideas about
social issues that you find bothersome because doing so may help you
influence someone else’s viewpoint. discussing topics that are generally
seen as taboo, as these are the ones that receive insufficient attention.
• Help People Around You Out: The first lesson that every pupil
learns is the importance of being grateful and helping others. One of
the most important things students should learn early on is this. The
1.3 The Contributions of Individuals to Societal Betterment 19
1.5 Motivation
1. Green Credit Program: Recently, the government introduced a
novel voluntary Green Credit programme intended to recognise and
1.5 Motivation 21
private lands and that local communities will play a significant part
in planning, decision-making, implementation, and monitoring, it has
chosen an integrated cross-sectoral strategy.
Chapter 2
2. Hard Disk: 40 GB
4. RAM: 2 GB
3. Back-End: Python
3.8 ER Diagram
ER diagrams form the basis of a relational database by defining business pro-
cesses through the use of data modelling techniques. They can describe the
entities, their characteristics, and the connections between them to demon-
strate the logical structure of databases. When designing databases and
working on projects that demand a clear data structure, ER diagrams are
crucial. Cardinality is another tool that ER diagrams employ to assist ex-
plain the relationship in a numerical context, especially when it comes to
minimums and maximums. Some examples of cardinalities that can appear
in an ERD include one, many, one, or zero, or one, many, and zero, or many.
Implementation
The platform consists of four distinct zones catering to different user roles
and functionalities. The General Zone primarily handles user authentication
and registration processes. In contrast, the Public Zone serves as the main
interface for general users, providing access to features like rewards, dona-
tion platforms, and job listings. The Servant Zone is dedicated to NGO’s,
organizations, or individuals engaged in social work, offering tools for view-
ing top contributors and managing complaints. Lastly, the Supervisor Zone
is reserved for administrators overseeing the platform, enabling tasks such
as monitoring service providers, adding events/news, and managing overall
operations. Each zone plays a crucial role in facilitating user engagement
and maintaining platform functionality.
• Login Page Through this module, users are able to sign in and gain
entry to the web application. By entering key details such as their
email and password, users can obtain access to the application.
4.1 General Zone: 39
4.1.1 Code:-
generalappurls.py :-
urlpatterns = [
path ( ’ ’ , views . login , name = ’ login ’) ,
path ( ’ registation / ’ , views . registration , name = ’ registration ’) ,
path ( ’ forget_password / ’ , views . forget_password ,
name = ’ forgetpassword ’) ,
path ( ’ get_otp / ’ , views . get_otp , name = ’ get_otp ’) ,
path ( ’ verify_otp / ’ , views . verify_otp , name = ’ verify_otp ’) ,
path ( ’ change_password / ’ , views . change_password ,
name = ’ change_password ’) ,
]
views.py :-
try :
check_email = User . objects . get ( email = email )
4.1 General Zone: 40
if check_email :
print ( ’ Already registered ’)
messages . success ( request , ’ Email Already Registered ’)
return render ( request , ’ registration . html ’ , locals ())
except :
user = User ( email = email , password = password )
user . save ()
# password encryption
current_user = User . objects . get ( email = email )
en cr yp te d_ pa ss wo rd =
make_password ( current_user . password )
print ( en cr yp te d_ pa ss wo rd )
User . objects . filter ( email = email )
. update ( password = en cr yp te d_ pa ss wo rd )
profile = Profile ( user = user , contact_no = contact_no ,
full_name = full_name , dob = dob , city = city ,
state = state , pin_code = pin_code )
profile . save ()
top = TopEnvorior ( profile = profile , reward =0). save ()
return render ( request , ’ login . html ’)
return render ( request , ’ registration . html ’)
try :
user = User . objects . get ( email = email )
hashed_password = user . password
# password decrypt
is_correct = check_password ( raw_password ,
hashed_password )
Tamplets:-
generalparent.html:-
{% endblock body %}
</ body >
</ html >
login.html:-
registration.html:-
{% block body %}
<! - - container -->
< div class = " wrapper " >
<! - - left box -->
< div class = " regleftbox " >
<! - - registration form -->
< form id = " registrationform " onsubmit = " event . preventDefault ();
registration (); " action = " {% url ’ generalapp : registration ’ %} "
method = " POST " class = " form w -75 mx - auto " >
{% csrf_token %}
<! - - validation message -->
<p style = " color : red ; " id = " validationresult " > </p >
< h1 style = " font - size : 36 px ;
text - align : center ; " > Registration </ h1 >
< div class = " row mt -3 " >
< div class = " col - sm -6 " >
< input type = " text " name = " email " id = " email " placeholder =
" Email address " class = " form - control " / >
</ div >
< div class = " col - sm -6 " >
< input type = " text " name = " contact_no "
id = " contact " placeholder = " Contact no . " class = " form - control " / >
</ div >
</ div >
< div class = " row mt -2 " >
< div class = " col - sm -12 " >
< input type = " text " name = " full_name " id = " name "
class = " form - control " placeholder = " Enter Full Name name " >
4.1 General Zone: 45
4.1.2 Snapshot:-
• Dashboard Upon logging in, users are directed to the landing page
where they can access various features including posts, notifications,
job listings, profiles, and a donation page. Users have the ability to
interact with posts by giving rewards, and they can also view top social
individuals on the dashboard.
• Add/Remove social work image Users can upload and remove im-
ages showcasing their social work on the application. They can also
receive rewards for their posts and have the option to delete them if
needed.
4.2.1 Code:-
publicappurls.py :-
fromdjango . urlsimportpath
from . importviews
urlpatterns =[
path ( ’ publichome / ’ , views . publichome , name = ’ publichome ’) ,
path ( ’ uploadpost ’ , views . uploadpost , name = ’ uploadpost ’) ,
path ( ’ like / < int : id >/ ’ , views . like_post , name = ’ like ’) ,
path ( ’ jobs / ’ , views . jobs , name = ’ jobs ’) ,
path ( ’ uploadjob / ’ , views . uploadjob , name = ’ uploadjob ’) ,
path ( ’ jobform / ’ , views . jobform , name = ’ jobform ’) ,
path ( ’ apply_job / < int : id >/ ’ , views . apply_job ,
name = ’ apply_job ’) ,
path ( ’ notifications / ’ , views . notifications ,
name = ’ notifications ’) ,
path ( ’ donation / ’ , views . donation , name = ’ donation ’) ,
path ( ’ postdonation / ’ , views . postdonation ,
name = ’ postdonation ’) ,
path ( ’ get_donation / < int : id >/ ’ , views . get_donation ,
name = ’ get_donation ’) ,
path ( ’ rewardondonate / < int : id >/ ’ , views . reward_donate ,
name = ’ rewardondonate ’) ,
path ( ’ cha ngeuse rprofi le / ’ , views . changeuserprofile ,
name = ’ cha ngeuse rprofi le ’) ,
path ( ’ logout / ’ , views . logout , name = ’ logout ’) ,
path ( ’ about / ’ , views . about , name = ’ about ’) ,
path ( ’ complain / ’ , views . complain , name = ’ complain ’) ,
path ( ’ contact / ’ , views . contact , name = ’ contact ’) ,
path ( ’ followers / ’ , views . followers , name = ’ followers ’) ,
path ( ’ followings / ’ , views . followings , name = ’ followings ’) ,
path ( ’ policy / ’ , views . policy , name = ’ policy ’) ,
path ( ’ profile / ’ , views . profile , name = ’ profile ’) ,
path ( ’ deletepost / < int : id >/ ’ , views . deletepost ,
name = ’ deletepost ’) ,
path ( ’ deletecomplain / < int : id >/ ’ , views . deletecomplain ,
name = ’ deletecomplain ’) ,
path ( ’ deletejob / < int : id >/ ’ , views . deletejob ,
name = ’ deletejob ’) ,
path ( ’ deletedonation / < int : id >/ ’ , views . deletedonation ,
name = ’ deletedonation ’) ,
path ( ’ scam / ’ , views . scam , name = ’ scam ’) ,
4.2 Public Zone: 50
views.py :-
except KeyError :
return redirect ( ’ generalapp : login ’)
( user = current_user )
top = TopEnvorior . objects . get
( profile = c u r r e n t _ u s e r _ d e t a i l s )
total_reward = top . reward
# top three envorior
top_ four_e nvorio r = TopEnvorior . objects . order_by
( ’ - reward ’ )[:4]
# notification code
notifications = Notification . objects . filter ( notification_to =
current_user )
return render ( request , ’ notifications . html ’ , locals ())
current_user_details )
donation = Donation . objects . filter ( donated_by =
current_user_details )
jobs = Job . objects . filter ( job_by =
current_user_details )
return render ( request , ’ profile . html ’ , locals ())
# change_profile
if request . method == ’ POST ’:
profile_image = request . FILES [ ’ pic ’]
c u r r e n t _ u s e r _ d e t a i l s . profile_picture = profile_image
c u r r e n t _ u s e r _ d e t a i l s . save ()
return redirect ( ’ publicapp : profile ’)
# deletepost code
post_for_delete = Post . objects . filter ( pid = id )
post_for_delete . delete ()
# getting post of user
post = Post . objects . filter ( postby = c u r r e n t _ u s e r _ d e ta i l s ).
order_by ( ’ - posteddate ’)
return render ( request , ’ user_post . html ’ , locals ())
# deletecomplain code
c o mp l a in _ f or _ d el e t e = Complain . objects . filter ( c_id = id )
c o mp l a in _ f or _ d el e t e . delete ()
Tamplets :-
publicparent.html :-
< link
rel = " stylesheet "
href = " https :// cdnjs . cloudflare . com / ajax / libs / font - awesome /6.4.0/ css /
all . min . css " integrity = " sha512 - i e cd L m as k l 7C V k qk X N Q / ZH / XLlvWZOJyj7Yy7
tce nmpD1y pASozp mT / E 0 i P t m F I B 4 6 Z m d t A c 9 e N B v H 0 H / ZpiBw
== " crossorigin = " anonymous "
referrerpolicy = " no - referrer " / >
<! - - BOOTSTRAP CDN -->
< link href = " https :// cdn . jsdelivr . net / npm / bootstrap@5 .3.3/
dist / css / bootstrap . min . css " rel = " stylesheet " integrity = " sha384 - Q W T K Z y
RjXh0JMhjY6hW + ALEwIH " crossorigin = " anonymous " >
< script src = " https :// cdn . jsdelivr . net / npm / bootstrap@5 .3.3
/ dist / js / bootstrap . bundle . min . js "
integrity = " s h a 3 8 4 Y v p c r Y f 0 t Y 3 l H B 6 0 N N k m X c 5 s 9 f D V Z L E S a A A 5 5 N D z O x h y 9 G k c I d s l
</ script >
<! - - JS FILE -->
< script src = " {% static ’ js / publicscript . js ’ %} " > </ script >
< link rel = " icon " type = " image /x - icon "
4.2 Public Zone: 61
<div >
<a href = " {% url ’ publicapp : jobs ’%} " class = " text - decoration - none " >
< span class = " txt -2 " ><i class = " fa - solid fa - briefcase " > </i > </ span >
</a >
</ div >
<div >
<a href = " # " class = " text - decoration - none " >
< span class = " txt -2 " ><i class = " fa - solid fa - headset " > </i > </ span >
</a >
</ div >
<div >
<a href = " {% url ’ publicapp : about ’%} " class = " text - decoration - none " >
< span class = " txt -2 " ><i class = " fa - solid fa - circle - info " > </i > </ span >
4.2 Public Zone: 63
</a >
</ div >
</ div >
< span class = " txt -2 " ><i class = " fa - solid fa - briefcase " > </i > </ span >
< span class = " txt -2 " > Jobs </ span >
</a >
</ div >
</a >
</ div >
</ div >
</ div >
<! - - right -->
< div class = " publicmiddle " >{% block content %} {% endblock %} </ div >
jobs.html :-
4.2 Public Zone: 68
donation.html:-
4.2.2 Snapshot :-
• Profile This module allows servants to display their basic details and
easily update their profile picture through a user-friendly interface.
4.3.1 Code:-
serventappurls :-
from django . urls import path
from . import views
urlpatterns = [
path ( ’ servent - dashboard / ’ , views . dashboard , name = ’ dashboard ’) ,
path ( ’ servent - complain / ’ , views . complain , name = ’ complain ’) ,
path ( ’ solvecomplain / < int : id >/ ’ , views . solve_complain ,
name = ’ solvecomplain ’) ,
path ( ’ servent - rank / ’ , views . rank , name = ’ rank ’) ,
path ( ’ servent / ’ , views . servent , name = ’ servent ’) ,
path ( ’ servent - event / ’ , views . event , name = ’ event ’) ,
path ( ’ your_event / ’ , views . your_event , name = ’ your_event ’) ,
4.3 Servant Zone: 80
views.py :-
current_complain . save ()
elif current_complain . complain_status == ’ unsolved ’:
current_complain . complain_status = ’ solved ’
current_complain . save ()
# getting all complain
complain = Complain . objects . all ()
return render ( request , ’ servent / pages / complain . html ’ , locals ())
# deleteevent code
event_for_delete = Event . objects . filter ( e_id = id )
event_for_delete . delete ()
# getting event of user
event = Event . objects . filter ( department = c u r r e n t _ u se r _ d e t a i l s ).
order_by ( ’ - date ’)
return render ( request , ’ servent / pages / your_event . html ’ , locals ())
Tamplets:-
serventparent.html:-
< title >{% block title %} My Title {% endblock %} </ title >
<! - - FONT AWESOME CDN -->
< link rel = " stylesheet " href = " https :// cdnjs . cloudflare . com
/ ajax / libs / fontawesome /6.4.0/ css /
all . min . css "
integrity = " s h a 5 1 2 i e c d L m a s k l 7 C V k q k X N Q / ZH / XL
l v W Z O J y j 7 Y y 7 t c e n m p D 1 y p A S o z p m T / E 0 iP t m F IB 4 6 Zm d t Ac 9 e
NBvH0H / ZpiBw == " crossorigin = " anonymous "
referrerpolicy = " no - referrer " / >
<! - - BOOTSTRAP CDN -->
< link href = " https :// cdn . jsdelivr . net / npm /
bootstrap@5 .3.3/ dist / css / bootstrap . min . css "
rel = " stylesheet " integrity = " s h a 3 8 4 Q W T K Z y j p P E j I S v 5 W a R U 9 O F e R p o k 6 Y c t n
Y m D r 5 p N l y T 2 b R j X h 0 J M h j Y 6 h W + ALEwIH " crossorigin = " anonymous " >
< script src = " https :// cdn . jsdelivr . net / npm / bootstrap
@5 .3.3/ dist / js / bootstrap . bundle . min . js "
integrity = " s h a 3 8 4 Y v p c r Y f 0 t Y 3 l H B 6 0 N N k m X c 5 s 9 f D V Z L E S a A A 5
5 NDzOxhy9GkcIdslK1eN7N6jIeHz "
crossorigin = " anonymous " > </ script >
<! - - JS FILE -->
< link rel = " icon " type = " image /x - icon "
href = " {% static ’ img / favicon . png ’ %} " >
< script src = " {% static ’ js / publicscript . js ’ %} " > </ script >
<! - - CSS FILE - - >
< link rel = " stylesheet " href = " {% static ’ css / serventstyle . css ’ %} " / >
</ head >
< body class = " body " >
<! - - header -->
< header >
<! - - logo and search - - >
< div class = " left " >
< div class = " logo " >
<! - - navbar logo -->
< img class = " logo - img " src = " {% static ’ img / slogo . png ’ %} " alt = " " / >
</ div >
<! - - this is for responsive -->
< div class = " right - responsive " >
< div class = " user - profile " >
{% if c u r r e n t _ u s e r _ d e t a i l s .
profile . profile_picture %}
<a href = " " >< img class = " profile - img " src = " {{ c u r r e n t _ u s e r _ d e t a i l s .
profile . profile_picture . url }} " alt = " " / > </a >
{% else %}
<a href = " " >< img class = " profile - img " src = "
{% static ’ img / profile . png ’ %} " alt = " " / > </a >
4.3 Servant Zone: 84
{% endif %}
</ div >
</ div >
</ div >
<! - - navbar search -->
< div class = " middle " >
</ div >
< div class = " right " >
< div class = " user - profile " >{% if c u r r e n t _ u s e r _ d e t a i l s .
profile_picture %}
<a href = " " >< img class = " profile - img " src {{
c u r r e n t _ u s e r _ d e t a i l s . profile_
picture . url }} " </a >
{% else %}
<a href = " " >< img class = " profile - img "
src = " {% static ’ img / profile . png ’ %} " </a >
{% endif %}
< div class = " profile - txt " >
<a href = " " class = " txt -3 " >
<p style = " margin - top : 18 px ; " >{{ c u r r e n t _ u s e r _ d e t a i l s . full_name }} </ p >
<p style = " margin - top : -15 px ; " > Department of
< cite title = " Source Title " >{{ c u r r e n t _ u s e r _ d e t a i l s .
full_name }} </ cite > </p >
</a >
</ div >
</ div >
</ div >
<! - - my profile - - >
< div class = " nav - responsive " >
<div >
<a href = " {% url ’ publicapp : publichome ’ %} "
class = " text - decoration - none " >
< span class = " txt -2 " ><i class = " fa - solid fa - house " > </i > </ span >
</a >
</ div >
<div >
<a href = " # " class =" text - decoration - none " >
< span class = " txt -2 " ><i class = " fa - solid fa - headset " > </i > </ span >
</a >
</ div >
</ div >
</ header >
< main >
<! - - left bar -->
< div class = " publicleft " >
4.3 Servant Zone: 85
servent.html
{% block content %}
4.3 Servant Zone: 87
< div class = " card " style = " width :100%; " >
< div class = " card - body " >
<div >
< inputtype = " search " placeholder = " Search Here " / >
< button class = " btn btn - primary " style = " float : right ; " >
Add Servent </ button >
</ div >
<hr >
< table class = " table table - striped table - hover " >
< thead >
<tr >
< th scope = " col " > Serial No . </ th >
< th scope = " col " > Name </ th >
< th scope = " col " > Email </ th >
< th scope = " col " > Contact No . </ th >
< th scope = " col " > Action </ th >
</ tr >
</ thead >
< tbody >
<tr >
< th scope = " row " >1 </ th >
<td > Muskan </ td >
<td > xyz@gmail . com </ td >
<td >1234567890 </ td >
<td > < i class = " fa - solid fa - pen - to - square " > </i > <i class =
" fa - solid fa - trash - can " > </i > </ td >
</ tr >
<tr >
< th scope = " row " >1 </ th >
<td > Muskan </ td >
<td > xyz@gmail . com </ td >
<td >1234567890 </ td >
<td > < i class = " fa - solid fa - pen - to - square " > </i > <i class =
" fa - solid fa - trash - can " > </i > </ td >
</ tr >
<tr >
< th scope = " row " >1 </ th >
<td > Muskan </ td >
<td > xyz@gmail . com </ td >
<td >1234567890 </ td >
<td > < i class = " fa - solid fa - pen - to - square " > </i > <i class =
" fa - solid fa - trash - can " > </i > </ td >
</ tr >
</ tbody >
</ table >
4.3 Servant Zone: 88
complain.html
{% block content %}
< div class = " new - card " >
{% for c in complain %}
< div class = " card - main " >
< div class = " card - top " >
< div class = " card - img " >
{% if c . complain_by . profile_picture %}
<a href = " " >< img class = " profile - img "
src = " {{ c . complain_by . profile_picture . url }} " / > </a >
{% else %}
<a href = " " >< img class = " profile - img "
src = " {% static ’ img / profile . png ’ %} " / > </a >
{% endif %}
</ div >
< div class = " card - title " >
<p > < span style = " font - weight : bold ; " > Complaints Type : </ span >
{{ c . complain_type }} </ p >
<p >{{ c . complain_by . full_name }} & middot ; {{ c . co mplain _locat ion }} </ p >
</ div >
</ div >
< div class = " card - img - main " >
{% if c . complain_image %}
< img src = " {{ c . complain_image . url }} " alt = " " / >
{% else %}
< img src = " {% static ’ img / profile . png ’ %} " alt = " " / >
{% endif %}
</ div >
< div class = " complain - status " >
<a href = " / solvecomplain /{{ c . c_id }} "
class = " text - decoration - none w -100 " >
{% if c . complain_status == ’ solved ’ %}
< span class = " complain - status - true " > Solved </ span >
{% else %}
< span class = " complain - status - false " > Unsolved </ span >
4.3 Servant Zone: 89
{% endif %}
</a >
</ div >
</ div >
{% endfor %}
</ div >
{% endblock %}
event.html :-
{% block content %}
< div class = " new - card " >
{% for e in event %}
< div class = " card - main " >
< div class = " card - top " >
< div class = " card - title " >
<p > < span style = " font - weight : bold ; " > News / Event by :
</ span > {{ e . department . full_name }} </ p >
<p > Date : {{ e . date }} </ p >
<p > Description : {{ e . description }} </ p >
</ div >
</ div >
< div class = " card - img - main " >
{% if e . image %}
< img src = " {{ e . image . url }} " alt = " " / >
{% else %}
< img src = " {% static ’ img / post . jpg ’ %} " alt = " " / >
{% endif %}
</ div >
< div class = " complain - status " >
<a href = " / delete_event /{{ e . e_id }} "
class = " text - decoration - none w -100 " >
< span class = " complain - status - false " > Delete </ span >
</a >
</ div >
</ div >
{% endfor %}
</ div >
{% endblock %}
4.3 Servant Zone: 90
4.3.2 Snapshot:-
4.4.1 Code:-
supervisorappurls.py :-
urlpatterns = [
path ( ’ supervisor - dashboard / ’ , views . dashboard ,
name = ’ su p e rv i s or d a sh b o ar d ’) ,
path ( ’ supervisor - complain / ’ , views . complain , name = ’ complain ’) ,
path ( ’ supervisor - view - servent / ’ , views . view_servent ,
name = ’ viewservent ’) ,
path ( ’ supervisor - addservent / ’ , views . addservent , name = ’ addservent ’) ,
path ( ’ supervisor - rank / ’ , views . rank , name = ’ rank ’) ,
]
views.py :-
4.4 Supervisor Zone: 93
Templates :-
supervisorparent.html
<! DOCTYPE html >
< html lang = " en " >
< head >
4.4 Supervisor Zone: 95
<div >
<a href = " # " class = " text - decoration - none " >
< span class = " txt -2 " ><i class = " fa - solid fa - headset " > </i > </ span >
</a >
</ div >
</ div >
</ header >
< main >
<! - - left bar -->
< div class = " publicleft " >
<! - - left middle -->
< div class = " navleftmiddle " >
< div class = " navleftmiddles navdiver mt -2 " >
<a
href = " {% url ’ supervisorapp :
s up e r vi s o rd a s hb o a rd ’ %} "
class = " text - decoration - none " >
< span class = " txt -2 " ><i class = " fa - solid
fa - house - user " > </i >& nbsp ; </ span >
< span class = " txt -2 " > Home </ span >
</a >
</ div >
< div class = " navleftmiddles navdiver " >
<a href = " {% url ’ supervisorapp : complain ’%} "
class = " text - decoration - none " >
< span class = " txt -2 "
><i class = " fa - solid fa - envelope - open - text " >
</i >& nbsp ; </ span >
< span class = " txt -2 " > Complain </ span >
</a >
</ div >
< div class = " navleftmiddles navdiver " >
<a href = " {% url ’ supervisorapp : addservent ’%} "
class = " text - decoration - none " >
< span class = " txt -2 "
><i class = " fa - solid fa - user - plus " > </i >& nbsp ; </ span >
< span class = " txt -2 " > Add Servant </ span >
</a >
</ div >
< div class = " navleftmiddles navdiver " >
<a href = " {% url ’ supervisorapp : rank ’%} "
class = " text - decoration - none " >
< span class = " txt -2 " >
<i class = " fa - solid fa - ranking - star " > </i >& nbsp ; </ span >
< span class = " txt -2 " > Top Social Person </ span >
4.4 Supervisor Zone: 98
</a >
</ div >
< div class = " navleftmiddles navdiver " >
<a href = " {% url ’ supervisorapp : viewservent ’%} "
class = " text - decoration - none " >
< span class = " txt -2 "
><i class = " fa - solid fa - users " > </ i
>& nbsp ; </ span >
< span class = " txt -2 " > View Servant </ span >
</a >
</ div >
</ div >
<! - - left bottom -->
< div class = " navleftbottom navleftmiddles " >
viewservent.html :-
{% extends ’ supervisorparent . html ’ %}
{% load static %}
{% block title %} Event {% endblock title %}
{% block content %}
< div class = " feed - search " >
<! - - < div class = " user - profile " >
<a >
< img class = " profile - img " src = " {% static ’ img / user . jpeg ’ %} " > </a >
</ div > - - >
< form >
< div class = " search " style = " margin - right : 10 px ; " >
< input type = " text " placeholder = " write here to search something " >
</ div >
src = " {{ s . profile_picture . url }} " alt = " " / > </a >
{% else %}
<a href = " " >< img class = " profile - img "
src = " {% static ’ img / profile . png ’ %} " alt = " " / > </a >
{% endif %}
</ div >
</ td >
<td >{{ s . full_name }} </ td >
<td >{{ s . contact_no }} </ td >
<td >{{ s . city }} </ td >
<td >{{ s . pin_code }} </ td >
</ tr >
{% endfor %}
4.4.2 Snapshot:-
Moving forward, the project aims to expand its scope by integrating Non-
Governmental Organizations (NGOs) into the platform. This enhancement
will provide a structured framework for collaboration between individuals,
businesses, and established charitable organizations, thereby amplifying the
impact of social and environmental initiatives. Additionally, the project in-
tends to implement a certification system to formally recognize and validate
the contributions of individuals and organizations engaged in exemplary so-
cial and environmental work. These certificates, authorized by the govern-
ment, will serve as a testament to their dedication and impact. Moreover,
recipients of these certificates may become eligible for subsidies or other forms
of governmental support, incentivizing further engagement and facilitating
sustainable development efforts. Furthermore, in line with our commitment
to continuous improvement, the future iterations of the project will prioritize
enhancing user experience and accessibility. This will involve implementing
user-friendly interfaces, streamlining navigation, and optimizing functionali-
ties to ensure seamless interaction for all users, including those with varying
levels of digital literacy. Additionally, efforts will be made to incorporate
multi-lingual support and accessibility features to cater to diverse popula-
tions. By prioritizing user-centric design principles, we aim to maximize
engagement and participation, empowering individuals from all backgrounds
104