First Commit

This commit is contained in:
rohit 2020-06-10 17:07:08 +05:30
parent 749c0d16aa
commit 90dd02f804
239 changed files with 800 additions and 245 deletions

BIN
Thumbs.db

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

5
account/apps.py Normal file
View File

@ -0,0 +1,5 @@
from django.apps import AppConfig
class AccountConfig(AppConfig):
name = 'account'

Binary file not shown.

View File

@ -1,4 +1,4 @@
{% extends 'base.html'%} {% extends 'base.html' %}
{% block content %} {% block content %}
@ -8,9 +8,6 @@
<br /> <br />
{% endif %} {% endif %}
<h1> Log In </h1> <h1> Log In </h1>
<form method="POST" action="{% url 'login' %}"> <form method="POST" action="{% url 'login' %}">

View File

@ -1,4 +1,4 @@
{% extends 'base.html'%} {% extends 'base.html' %}
{% block content %} {% block content %}
@ -10,7 +10,6 @@
{% endif %} {% endif %}
<h1> Sign Up</h1> <h1> Sign Up</h1>
<form method="POST" action="{% url 'signup' %}"> <form method="POST" action="{% url 'signup' %}">
@ -35,4 +34,5 @@
</form> </form>
{% endblock %} {% endblock %}

View File

@ -1,9 +1,8 @@
from django.urls import path, include
from django.urls import path,include
from . import views from . import views
urlpatterns = [
urlpatterns=[
path('signup',views.signup, name='signup'), path('signup',views.signup, name='signup'),
path('login',views.login, name='login'), path('login',views.login, name='login'),
path('logout',views.logout, name='logout'), path('logout',views.logout, name='logout'),
] ]

View File

@ -35,7 +35,3 @@ def logout(request):
if request.method =='POST': if request.method =='POST':
auth.logout(request) auth.logout(request)
return redirect('home') return redirect('home')

View File

@ -1,5 +0,0 @@
from django.apps import AppConfig
class AccountsConfig(AppConfig):
name = 'accounts'

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

5
hello/apps.py Normal file
View File

@ -0,0 +1,5 @@
from django.apps import AppConfig
class HelloConfig(AppConfig):
name = 'hello'

View File

@ -1,4 +1,4 @@
# Generated by Django 2.2 on 2020-05-19 11:08 # Generated by Django 2.2 on 2020-06-08 14:45
from django.conf import settings from django.conf import settings
from django.db import migrations, models from django.db import migrations, models
@ -15,15 +15,14 @@ class Migration(migrations.Migration):
operations = [ operations = [
migrations.CreateModel( migrations.CreateModel(
name='Product', name='hello',
fields=[ fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=255)), ('Name', models.CharField(max_length=255)),
('pub_date', models.DateTimeField()), ('Full_Address', models.TextField(max_length=300)),
('url', models.TextField()), ('image', models.ImageField(upload_to='images/')),
('image', models.ImageField(upload_to='')), ('self_image', models.ImageField(upload_to='images/')),
('icon', models.ImageField(upload_to='')), ('votes_total', models.IntegerField(default=1)),
('votes_total', models.IntegerField()),
('hunter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('hunter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
], ],
), ),

View File

@ -0,0 +1,31 @@
# Generated by Django 2.2 on 2020-06-08 17:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('hello', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('Name', models.CharField(max_length=255)),
('Full_Address', models.TextField(max_length=300)),
('image', models.ImageField(upload_to='images/')),
('self_image', models.ImageField(upload_to='images/')),
('votes_total', models.IntegerField(default=1)),
('hunter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.DeleteModel(
name='hello',
),
]

Binary file not shown.

24
hello/models.py Normal file
View File

@ -0,0 +1,24 @@
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Product(models.Model):
Name= models.CharField(max_length=255)
Full_Address=models.TextField(max_length=300)
image=models.ImageField(upload_to='images/')
self_image=models.ImageField(upload_to='images/')
votes_total=models.IntegerField(default=1)
hunter=models.ForeignKey(User,on_delete=models.CASCADE)
def _str_(self):
return self.Name
def summary(self):
return self.Full_Address[:100]

View File

@ -13,28 +13,26 @@
<form method="POST" action="{% url 'create' %}" enctype="multipart/form-data"> <form method="POST" action="{% url 'create' %}" enctype="multipart/form-data">
{% csrf_token %} {% csrf_token %}
Title: Name:
<br /> <br />
<input type="text" name="title" /> <input type="text" name="Name" />
<br /> <br />
Body: Full_Address:
<br /> <br />
<input type="text" name="body" /> <input type="text" name="Full_Address" />
<br />
URL:
<br />
<input type="text" name="url" />
<br />
Icon:
<br />
<input type="file" name="icon" />
<br /> <br />
Image: Image:
<br /> <br />
<input type="file" name="image" /> <input type="file" name="image" required />
<br />
self_image:
<br />
<input type="file" name="self_image" required>
<br /> <br />
<br /> <br />
<input class="btn btn-primary" type="submit" value="Add Product" /> <input class="btn btn-primary" type="submit" value="Add Details" />
</form> </form>
{% endblock %} {% endblock %}

View File

@ -4,16 +4,16 @@
<div class="row"> <div class="row">
<div class="col-2"> <div class="col-2">
<img src="{{ product.icon.url }}" class="img-fluid"/> <img src="{{ product.image.url }}" class="img-fluid"/>
</div> </div>
<div class="col-10"> <div class="col-10">
<a href="{{ product.url }}"><h1>{{product.title}}</h1></a> <h1>{{product.Name}}</h1></a>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-8"> <div class="col-8">
<img src="{{ product.image.url }}" class="img-fluid"/> <img src="{{ product.self_image.url }}" class="img-fluid"/>
</div> </div>
<div class="col-4"> <div class="col-4">
<a href="javascript:{document.getElementById('upvote').submit()}"><button class="btn btn-primary btn-lg btn-block "><span class="oi oi-caret-top"></span>Upvote {{product.votes_total}}</button></a> <a href="javascript:{document.getElementById('upvote').submit()}"><button class="btn btn-primary btn-lg btn-block "><span class="oi oi-caret-top"></span>Upvote {{product.votes_total}}</button></a>
@ -23,23 +23,21 @@
<div class="row"> <div class="row">
<div class="col-4 "> <div class="col-4 ">
<h4>Hunted by {{ product.hunter.username }}</h4> <h6>Details given by {{ product.hunter.username }}</h6>
</div>
<div class="col-4 text-">
<h4><span class="oi oi-clock"></span> {{ product.pub_date_pretty }}</h4>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-8 "> <div class="col-8 ">
<p>{{ product.body }}</p> <h2>{{ product.Full_Address }}</h2>
</div> </div>
<form id="upvote" method="POST" action="{% url 'upvote' product.id %}" > <form id="upvote" method="POST" action="{% url 'upvote' product.id %}" >
{% csrf_token %} {% csrf_token %}
<input type="hidden"> <input type="hidden">
</form> </form>
{% endblock %} {% endblock %}

142
hello/templates/help.html Normal file
View File

@ -0,0 +1,142 @@
{% extends 'base.html' %}
{% block content %}
{% load staticfiles %}
<h4> ALL-INDIA-HELPINE-NUMBER</h4>
<img src="{% static 'ng03.jpg' %}" height="250"/> &emsp;&emsp; <img src="{% static 'unity.jpg' %}" height="250"/>&emsp;&emsp;<img src="{% static 'corona1.jpg' %}" height="250"/>
<br>
<h4>Hello this website is for the help of people who are
stuck in corona-pandemic situation.Here is the list
of all the helpline-no of India, State-Wise where
you can call from anywhere for help.They are helped
by the team of their respective state.Here is our
hero Sonu sood number is also given.This is the platform
which I provide to you where you can call for help ,If
you are stuck in any problem,they must help you. There is one extra bonus for you all
get district-wise
help and you also get help by my team also.As my chain is growing
day by day I try to help you in all over india who are in problem
through my team or by my website or through any other medium.If you stuck in any problem please
feel free to call me I try my best to help you in anyway.
</h4>
<br>
<br>
<h4>GO! CALL FOR HELP.</h4>
<br>
<h6>SONU SOOD NUMBER-18001213711,Whatsapp-No-9321472118
<br>
<h6>MY NUMBER-6204488083, whatsapp-no-6204488083</h6>
<h4>State/UT Helpline No.</h4>
Andaman & Nicobar 03192-232102
<br>
Andhra Pradesh 0866-2410978
<br>
Arunachal Pradesh 9436055743
<br>
Assam 6913347770
<br>
Bihar 104
<br>
Chandigarh 9779558282
<br>
Chhattisgarh 104
<br>
Dadra Nagar Haveli 104
<br>
Delhi 011-22307145
<br>
Goa 104
<br>
Gujarat 104
<br>
Haryana 8558893911
<br>
Himachal Pradesh 104
<br>
Jammu 01912520982
<br>
Jharkhand 104
<br>
Karnataka 104
<br>
Kashmir 01942440283
<br>
Kerala 0471-2552056
<br>
Ladakh 01982256462
<br>
Lakshadweep 104
<br>
Madhya Pradesh 104
<br>
Maharashtra 020-26127394
<br>
Manipur 3852411668
<br>
Meghalaya 108
<br>
Mizoram 102
<br>
Nagaland 7005539653
<br>
Odisha 9439994859
<br>
Puducherry 104
<br>
Punjab 104
<br>
Rajasthan 0141-2225624
<br>
Sikkim 104
<br>
Tamil Nadu 044-29510500
<br>
Telangana 104
<br>
Tripura 0381-2315879
<br>
Uttarakhand 104
<br>
Uttar Pradesh 18001805145
<br>
West Bengal 1800313444222, 03323412600
<br>
<br>
<h2>The central helpline number: 011-23978046</h2>
<br>
</h6>
<br>
<h5>CLICK ON IMAGE OF AAROGYA SETU TO DOWNLOAD THE APP.</h5>
<a href="https://play.google.com/store/apps/details?id=nic.goi.aarogyasetu&hl=en_IN">
<img src="{% static 'setu.jpg' %}" height="100">FOR ANDROID USER CLICK ON FIRST IMAGE</a>&emsp; &emsp;
<a href="https://apps.apple.com/in/app/aarogyasetu/id1505825357">
<img src="{% static 'setu.jpg' %}" height="100">FOR MAC USER CLICK ON SECOND IMAGE</a>
<h5>DOWNLOAD AAROGYA SETU APP
<br>
AND CHECK YOURSELF EVERYTIME
<br>
STAY HOME,STAY SAFE.
</h5>
<br>
<br>
<h4>GO! Follow me for more updates.Click on the facbook and instagram icon.</h4>
<br>
<a href="https://www.facebook.com/OYE-ITS-MUSIC-110339910646796/"><img src="{% static 'fb2.jpg' %}" height="50">
</h6></a> &emsp; &emsp;
&emsp;
<a href="https://www.instagram.com/rv720468/"><img src="{% static 'insta.jpg' %}" height="50">
</a>
{% endblock %}

261
hello/templates/home.html Normal file
View File

@ -0,0 +1,261 @@
{% extends 'base.html'%}
{% block content %}
{% load staticfiles %}
<h2>HERE ARE THE GUIDELINES HOW TO USE WEBSITE :</h2>
<br>
<h5>1.First you help the poor/needy people and click photo with him/her.</h5>
<h5>2.Sign In.</h5>
<h5>3.Log In.</h5>
<h5>4.When you logged in click on create details. </h5>
<h5>5.Give your NAME,FULL_ADDRESS.In IMAGE field add the photo of needy people with you whom you help and in SELF_IMAGE add your own image.</h5>
<h5>6. Click on Add details button.</h5>
<h5>7.Then click on Rohit-NGO or ICON of ROHIT-NGO, given on the top
of website .It will redirect you to homepage where you see all the photos given by the people. </h5>
<h5>8.Upvote the photo which you like most.</h5>
<h5>9.If you want to become volunteer of my NGO and for more updates of website,
then join the group via given whatsapp icon.</h5>
<br>
<a href="https://chat.whatsapp.com/K73dnEx1Bhv6hk6Mj0GnNd"><h5>CLICK ON WHATSAPP ICON AND BECOME VOLUNTEER AND BE READY TO HELP THE NEEDY PEOPLE. </h5><img src="{% static 'w1.png' %}" height="50"></a>
<h3>GO ON! CLICK THE WHATSAPP ICON.</h3>
<br>
<h4>IF YOU WANT TO DONATE MONEY FOR THE HELP OF NEEDY PEOPLE SCAN THE IMAGE/QR-CODE GIVEN BELOW :CONTRIBUTE IN ROHIT-NGO
AS MUCH AS YOU CAN FOR THE HELP OF NEEDY/POOR PEOPLE.OUR NGO WILL HELP ALL THE PEOPLE WHO ARE SUFFER FRO SUCH
EPIDEMIC.WE TRY OUR BEST.SO PLEASE GO AHEAD AND TELL PEOLE TO CONTRIBUTE IN ROHIT-NGO.
</h4>
<img src="{% static 'v1.jpeg' %}" height="500">
<h4>HERE IS MY G-PAY,PHONE-PE NUMBER.(+916204488083).YOU CAN ALSO DONATE MONEY FOR THE HELP OF NEEDY PEOPLE ON GIVEN NUMBER.</h4>
<br>
<h2>ROLE OF VOLUNTEER:</h2>
<h4>The role of the volunteer is to help the needy/poor people of their respective city/
town/village and upload the photo on my website.You can also raise fund through public
and
you can use your own fund to help the people.Upload the photo of your own with the person whom you help.
It is mandatory.
</h4>
<br>
<br>
{% for product in hello.all %}
<div class="row pt-3">
<div class="col-2" onclick="window.location='{% url 'detail' product.id %}';" style="cursor: pointer;">
<img src="{{ product.image.url }}" class="img-fluid"/>
</div>
<div class="col-6 onclick="window.location='{% url 'detail' product.id %}';" style="cursor: pointer;"">
<h4>{{product.Name}}</h6>
<h6>{{product.Full_Address}}</h6>
</div>
<div class="col-4 onclick="window.location='{% url 'detail' product.id %}';" style="cursor: pointer;"">
<a href="javascript:{document.getElementById('upvote{{product.id}}').submit()}"><button class="btn btn-primary btn-lg btn-block "><span class="oi oi-caret-top"></span>Upvote {{product.votes_total}}</button></a>
</div>
</div>
<form id="upvote{{product.id}}" method="POST" action="{% url 'upvote' product.id %}" >
{% csrf_token %}
<input type="hidden">
</form>
{% endfor %}
<br>
<br>
<h5>
AS WE KNOW THAT THERE ARE MANY POOR PEOPLE IN INDIA AND ALL OVER THE WORLD
DUE TO THIS EPIDEMIC .ALL COUNTRY SUFFERED FROM ECONOMIC
CRISIS.SO IT'S OUR RESPONSIBILITY TO MAKE OUR COUNTRY GOOD IN ECONOMIC CONDITION.
IT'S LIKE A CHALLANGE FOR ALL OF US.WE SHOULD HELP AT LEAST 10 POOR PEOPLE BY GIVING
THEM ANYTHING ONLY HELP IN ANYWAY.HERE IS GOOD PLATFORM I PROVIDE TO YOU.WHEN YOU HELP
THE PERSON ,YOU CLICK PHOTO WITH HIM/HER AND UPLOAD ON THIS WEBSITE.IN THIS WAY YOU BECOME PART OF MY TEAM.
AND HERE IN THE WEBSITE WHERE YOU SEE YOUR ALL THE PHOTOS OF PERSON WHOM YOU HELP, TAKE PART IN THIS GREAT WORK.
GO AHEAD! AND ALSO AWARE PEOPLE TO HELP THE NEEDY/POOR PEOPLE.
</h5>
<br>
<br>
<h2>ABOUT CORONAVIRUS </h2>
<img src="{% static 'x1.jpg' %}" height="225"/> &emsp;&emsp;
<img src="{% static 'x2.jpg' %}" height="225"/> &emsp;&emsp;
<img src="{% static 'x3.jpg' %}" height="225"/>&emsp;&emsp;
<h6>Coronaviruses typically affect the respiratory tracts of birds and mammals,
including humans. Doctors associate them with the common cold, bronchitis, pneumonia,
severe acute respiratory syndrome (SARS), and coronavirus disease 2019 (COVID-19).
These viruses can also affect the gut.
Coronaviruses usually cause the common cold, though they can be responsible for more severe illnesses.
Over the past 80 years, scientists have found that these viruses can infect mice,
rats, dogs, cats, turkeys, horses, pigs,
and cattle. Sometimes, these animals transmit the viruses to humans.
Most recently, authorities identified a new coronavirus outbreak in China
that has now reached other countries.
The virus is called severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) and it can cause COVID-19.
In this article, we explain the different types of human coronavirus, their symptoms,
and how people transmit them. We also focus on three particularly dangerous diseases caused by coronaviruses:
COVID-19, SARS, and Middle East respiratory syndrome (MERS).
Stay informed with live updates on the current COVID-19 outbreak and visit our coronavirus hub for more advice on prevention and treatment.
<h2>What is a coronavirus?</h2>
Covering the mouth when sneezing can help stop the spread of coronaviruses.
Researchers first identified a coronavirus in 1937, isolating one that was responsible for a type of bronchitis in birds that had the potential to devastate poultry stocks.
Scientists found evidence of human coronaviruses in the 1960s, in the noses of people with the common cold.
Human coronaviruses that are particularly prevalent include 229E, NL63, OC43, and HKU1.
The name “coronavirus” comes from the crown-like projections on their surfaces. “Corona” in Latin means “halo” or “crown.”
Among humans, coronavirus infections most often occur during the winter months and early spring.
<h2>COVID-19</h2>
In 2019, the Centers for Disease Control and Prevention (CDC) started monitoring the outbreak of a new coronavirus, SARS-CoV-2, which causes COVID-19. Authorities first identified the virus in Wuhan, China.
Since then, the virus has spread to nearly every country, leading the World Health Organization (WHO) to declare a pandemic.
The new coronavirus has been responsible for millions of infections globally, causing hundreds of thousands of deaths. The United States has seen the highest number of these deaths.
The first people with COVID-19 had links to an animal and seafood market. This suggests that animals initially transmitted the virus to humans. Then, people with no connections to the market developed the disease, confirming that humans can pass the virus to each other.
Most people who get COVID-19 will have a mild form of the disease. According to the WHO, around 80% of people who get COVID-19 will recover without needing hospitalization.
The remaining 20% become seriously ill and develop difficulty breathing.
Some groups are more at risk of severe disease, including older adults and people with underlying medical concerns, including high blood pressure, heart and lung problems, diabetes, and cancer.
The mortality rate varies between countries. In the U.S., the death rate is around 6%.
According to the CDC, children are not at higher risk of COVID-19 than adults.
Pregnant women appear to have the same risk of COVID-19 as other adults. However, during pregnancy, women have a higher risk of severe illness from viruses that are similar to SARS-CoV-2 and influenza.
The CDC also recommend that infants born to women with suspected or confirmed COVID-19 are put into isolation.
<br>
<br>
<h2>Symptoms of COVID-19</h2>
<img src="{% static 'k1.jpg' %}" height="225"/> &emsp;&emsp;
<img src="{% static 'k2.jpg' %}" height="225"/> &emsp;&emsp;
<img src="{% static 'k3.jpg' %}" height="225"/>
<h5>People may start to experience symptoms 214 days after exposure to the virus. Symptoms may include:</h5>
a fever
chills
a cough
shortness of breath or difficulty breathing
sore throat
congestion or a runny nose
fatigue
headache
muscle pain
new loss of taste or smell
nausea or vomiting
diarrhea
No vaccine is currently available for COVID-19. However, scientists have now replicated the virus. This could allow for early detection and treatment in people who have the virus but are not experiencing symptoms.
According to the CDC, the following groups have a higher risk of developing serious illness from COVID-19:
people aged 65 years or older
people living in nursing homes or care facilities
people of any age who have serious underlying medical conditions, including chronic lung disease, serious heart conditions, severe obesity, a compromised immune system, or diabetes
The CDC note that although there have been reports of complications in young children, these are rare. COVID-19 most commonly produces mild symptoms in children.
<h2>General symptoms of coronavirus infections</h2>
Cold- or flu-like symptoms usually set in around 24 days after the infection develops. Typically, the symptoms are mild, though they vary from person to person. In some people, coronavirus infections are fatal.
Symptoms may include:
a runny nose
a headache
a cough
a fever
a sore throat
generally feeling unwell
While scientists can easily cultivate rhinoviruses — which also cause the common cold — in the laboratory, this is not the case with coronaviruses. This makes it difficult to gauge the impact of these pathogens.
There is currently no cure for the cold-like illnesses caused by coronaviruses. Treatments include self-care and over-the-counter medications.
Taking the following steps may help:
resting and avoiding overexertion
drinking plenty of water
avoiding smoking and smoky areas
taking acetaminophen (Tylenol) to reduce pain and a fever
using a clean humidifier or cool mist vaporizer
A doctor can identify the virus responsible in a sample of fluid from a persons body, such as a sample of blood or mucus from the nose.
<h2>Types</h2>
Coronaviruses belong to the subfamily Coronavirinae in the family Coronaviridae.
Different types of coronavirus vary, in terms of the severity of disease that they cause and how far they spread.
Doctors currently recognize seven types of coronavirus that can infect humans.
Common types include:
229E (alpha coronavirus)
NL63 (alpha coronavirus)
OC43 (beta coronavirus)
HKU1 (beta coronavirus)
Rarer strains that cause more severe illnesses include MERS-CoV, which causes the disease MERS, and SARS-CoV, the virus responsible for SARS.
In 2019, a new strain, called SARS-CoV-2, started circulating, causing the disease COVID-19.
<h2>Transmission</h2>
The CDC recommend that all people wear cloth face masks in public places where it is difficult to maintain a 6-foot (2-meter) distance from others. This will help slow the spread of the virus from asymptomatic people and people who do not know that they have contracted it. People should wear cloth face masks while continuing to practice physical distancing. Instructions for making masks at home are available here. Note: It is critical that surgical masks and N95 respirators are reserved for healthcare workers.
Researchers believe that the viruses transmit via fluids in the respiratory system, such as mucus.
For example, a coronavirus can spread when a person:
coughs or sneezes without covering their mouth, dispersing droplets into the air
touches someone who has the infection
touches a surface that has the virus, then touches their own nose, eyes, or mouth
Some animal coronaviruses may spread to humans through contact with feces, though it is unclear whether human coronaviruses can spread in the same way.
Coronaviruses will infect most people at some point.
To prevent transmission, people with symptoms should stay at home, rest, and avoid coming into close contact with other people.
Covering the mouth and nose with a tissue or handkerchief while coughing or sneezing can also help prevent transmission. It is important to dispose of used tissues right away and maintain proper hygiene around the home.
<br>
<br>
<h4>GO! Follow me for more updates.Click on the facbook and instagram icon.</h4>
<br>
<a href="https://www.facebook.com/OYE-ITS-MUSIC-110339910646796/"><img src="{% static 'fb2.jpg' %}" height="50">Facebook</a>
&emsp;&emsp;&emsp;<a href="https://www.instagram.com/rv720468/"><img src="{% static 'insta.jpg' %}" height="50">Instagram</h6></a>
{% endblock %}

View File

@ -0,0 +1,223 @@
{% extends 'base.html' %}
{% block content %}
{% load staticfiles %}
<h1>CORONA WARRIORS DETAILS</h1>
<br>
<img src="{% static 'police.jpg' %}" height="225"/> &emsp;&emsp;
<img src="{% static 'doctor.jpg' %}" height="225"/> &emsp;&emsp;
<img src="{% static 'cleaners.jpg' %}" height="225"/>&emsp;&emsp;
<h4>Here are some unbounded story of corona warriors ,They came out and save the
people in such a epidemic situation.A big salute to doctor,army,police and cleaners.
and all the people who help the others.This type of epidemic came after 100 years
in the whole world.All are suffering from this epidemic ,mainly poor they have no money
and home ,they move from here to there to save their own life from corona.More than 2 months there is lockdown in our country
no one do anything .It's our responsibility to save their life by helping each other
in such pandemic situation.Our country is great ,Here are the some story of many unsung warriors
who help all the people who are suffered from this epidemic.
If you are such a great human being and able to help others,
help at least 1 one needy people.Then you will become good human being in your own eyesight .
</h4>
<br>
<img src="{% static 'd1.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'd2.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'd3.jpg' %}" height="200"/>&emsp;&emsp;
<h4>
1.Emergency measures
Following the widespread outbreak of coronavirus in India,
the country has gone on lockdown to combat the virus -
a move that has led to disruption across economic strata.
To help combat this, Finance Minister Nirmala Sitharaman had announced the following measures.
Agencies
<br>
<br>
2.Relief package
A relief package worth Rs 1.7
lakh crore has been earmarked
for the needy and will be disbursed as the government sees fit.
<br>
<br>
3.Coverage
The relief package will cover close to 80 crore people,
ensuring their safety during the lockdown and for however
more it might extend.
<br>
<br>
4.Benefits
The Pradhan Mantri Gareeb Kalyan Yojana will give
the people covered under it five kg of rice/wheat for three months.
<br>
<br>
5.Insurance
Included in this fund is insurance cover for people working in healthcare,
, with each worker getting a Rs 50 lakh insurance cover for the next three months.
Agencies
<br>
<br>
</h4>
<br>
<img src="{% static 's1.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 's2.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 's3.jpg' %}" height="200"/>&emsp;&emsp;
<h5>
“Migrant workers have helped build our roads, homes and offices.
We cannot stand and watch them be homeless,” says actor Sonu Sood.
Each day since the COVID-19 lockdown in Mumbai, the actor has been organising buses
for migrant workers to travel from Mumbai to their respective hometowns.
As part of his Ghar Bhejo campaign, he has helped approximately 12,000 migrants reach home,
and arrangements have been made for another 45,000. He responds to questions over a voice note,
amid what he calls a crazily busy schedule that keeps him awake nearly 22 hours a day.
Each day, at least around 45,000 people are provided food and water as well.
</h5>
<br>
<img src="{% static 'b1.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'b2.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'b3.jpg' %}" height="200"/>&emsp;&emsp;
<h5>
Hindustani Bhau stands in solidarity with the nation and has supported India
to combat the coronavirus pandemic. Vikas Fhatka aka Hindustani Bhau of Bigg Boss 13
fame also came forward to feed the street dogs during the lockdown due to
the coronavirus pandemic. His social media account was flooded with love
, social media users praised him for the kindness act.
Distributing food and water to the dogs gives him immense pleasure.
He wants to ensure that no one will go hungry. Several people lauded his initiative.
Thanks to the hero who stepped in at the right place and at the right time on the ground
and helped to bring some good optimism to an otherwise serious situation.
</h5>
<br>
<img src="{% static 'c1.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'c2.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'c3.jpg' %}" height="200"/>&emsp;&emsp;
<h5>
TV actor Ronit Roy became the centre of attention after he revealed in a recent
interview that he has been taking care of 100 families despite not making money
since January. Mr Roy mentioned that he runs a small business, which has been shut
since March given the nationwide lockdown due to the coronavirus pandemic.
In an interview with ETimes, Ronit Roy said, "Personally, I haven't made money
since January. I have a small business which was running, and is now shut since March.
Whatever I have, I am selling things to support about 100 families that I am responsible for."
</h5>
<br>
<img src="{% static 'e2.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'e3.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'e4.jpg' %}" height="200"/>&emsp;&emsp;
<h5>
Praising the actor,“Thank you @BeingSalmanKhan bhai for
being there for our frontline warriors, thank you @CMOMaharashtra
@AUThackeray ji @MumbaiPolice @CPMumbaiPolice for being there for one and all...
FRSH sanitisers to be distributed to all our frontline warriors in the Police Dept.”
Fans were moved by Salmans gesture. One wrote: “Megastar
#SalmanKhan Donates Huge 1,00,000 (1 Lakh) Bottles of FRSH SANITIZERS
To Police Personnels in Mumbai Amidst This Coronavirus Lockdown! #LoveUBhaijaan!”
Another fan wrote: “The #SalmanKhan Man with the golden heart thats
why he most lovable superstar in country hattoff God bless you. always love #BeingHuman”
</h5>
<br>
<img src="{% static 'f1.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'f2.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'f3.jpg' %}" height="200"/>&emsp;&emsp;
<h5>
ndia pacer Mohammed Shami said he is trying his best to help the needy,
especially daily-wage workers during the Covid-19 lockdown.
Mohammed Shami said he saw a migrant labourer fainting in hunger through CCTV
visuals and that he immediately rushed out of his house to feed him.
Shami said the migrant worker was on his way to Bihar from Rajasthan via Lucknow.
The Covid-19 pandemic has brought normal lives to a grinding halt across the globe.
Several countries have enforced lockdown to combat the spread of the novel coronavirus.
In India, the lockdown has had a drastic impact on daily-wage labourers, especially the ones in major cities.
As of April 15, more than 11,900 people have been infected by the virus which has led
to more than 390 deaths in India.
"He was coming from Rajasthan. Just imagine he is supposed to go to Bihar
which is so far from Lucknow too. He has no means to commute and I saw in my home CCTV camera that he fainted in hunger and was close to my door. So I provided him with food and helped him out," Shami said during an Instagram live chat.
"I am trying to help as much as I can.
There are migrant workers here who are really struggling to meet ends.
The highway is also near my house so I can see people having a tough time. I feel I should help and I am doing as much as possible."
</h5>
<br>
<img src="{% static 'g1.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'g2.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'g3.jpg' %}" height="200"/>&emsp;&emsp;
<h5>
Bollywood actor Akshay Kumar has been in the forefront helping
the corona warriors and daily wage workers ever since the coronavirus outspread.
The actor has once again come forward to help the Mumbai
Police to detect COVID-19 symptoms by donating about 1000 wrist bands.
Akshay is the brand ambassador of a healthcare brand and he has given
wrist bands that help detect coronavirus symptoms. according to the report in TOI,
Mumbai Police will be the first organization in the world enabled to remotely track
and manage the health of its personnel with the preventive health platform.
The wrist bands that Akshay Kumar has donated will help detect symptoms like blood pressure,
heart rate, sleep and will also keep a check on step count and calories.
It will also detect if the temperature of a person is higher than normal or not.
Reports also claim that the sensor-laden wrist bands which Akshay Kumar has donated
to the Mumbai Police will only be available to corona warriors during this time.
</h5>
<br>
<img src="{% static 'h1.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'h2.jpg' %}" height="200"/>&emsp;&emsp;
<img src="{% static 'h3.jpg' %}" height="175"/>&emsp;&emsp;
<h5>
MUMBAI: Mumbai police commissioner Param Bir Singh on Saturday informed that India cricket skipper Virat Kohli and his wife actor Anushka Sharma have contributed Rs 5 lakh each for police welfare amid the novel coronavirus outbreak.
"Thank you, @imVkohli and @AnushkaSharma for contributing Rs. 5 lacs each towards the welfare of Mumbai Police personnel. Your contribution will safeguard those at the frontline in the fight against Coronavirus. #MumbaiPoliceFoundation," Singh tweeted from h ..
Earlier, Kohli and Sharma had given undisclosed amounts to the PM CARES
fund and Maharashtra Chief Minister's Relief Fund to support the fight against Covid-19.
Maharashtra has the highest number of coronavirus positive cases in the country.
</h5>
<br>
<br>
<div class="text-center">
<img src="{% static 'i3.jpg' %}" height="300"/>
</div>
<br>
<br>
<h3>
AS THERE ARE MANY HEROES WHO INSPIRE US ,HOW TO HELP OTHERS
THERE ARE MANY STORIES WHO TELL US ABOUT THAT .WE ARE INDIANS
AND READY TO HELP OTHERS IF WE FIND ANYONE IN PROBLEM IN THE WHOLE
WORLD, WE ARE READY TO HELP ,SO PLEASE TAKE OATH WITH ME,THAT WE ALWAYS TAKE CARE OF EACH OTHERS
AND READY TO FIGHT SUCH EPIDEMIC.SO YOU ALSO BECOME HERO FOR OTHERS BY DOING SUCH SMALL-
SMALL THINGS.SO GO AHEAD WITH OUR COUNTRY CONTRIBUTE WHATEVER YOU CAN DO AND TRY YOUR BEST EFFORT.
</h3>
<br>
<img src="{% static 'j1.jpg' %}" height="300"/>
<h1>AATAM NIRBHAR BHARAT!</h1>
<br>
<br>
{% endblock %}

View File

@ -2,7 +2,10 @@ from django.urls import path
from . import views from . import views
urlpatterns=[ urlpatterns=[
path('help',views.help, name='help'),
path('warriors',views.warriors, name='warriors'),
path('create',views.create, name='create'), path('create',views.create, name='create'),
path('<int:product_id>/',views.detail, name='detail'), path('<int:product_id>',views.detail, name='detail'),
path('<int:product_id>/upvote',views.upvote, name='upvote'), path('<int:product_id>/upvote',views.upvote, name='upvote'),
] ]

46
hello/views.py Normal file
View File

@ -0,0 +1,46 @@
from django.shortcuts import render,redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from .models import Product
def home(request):
hello=Product.objects
return render(request,'home.html',{'hello':hello})
def help(request):
return render(request,'help.html')
def warriors(request):
return render(request,'warriors.html')
@login_required
def create(request):
if request.method == 'POST':
if request.POST['Name'] and request.POST['Full_Address'] and request.FILES['image'] and request.FILES['self_image']:
product = Product()
product.Name = request.POST['Name']
product.Full_Address = request.POST['Full_Address']
product.image = request.FILES['image']
product.self_image = request.FILES['self_image']
product.hunter = request.user
product.save()
return redirect('/hello/'+str (product.id))
else:
return render(request, 'create.html',{'error':'All fields are required.'})
else:
return render(request, 'create.html')
def detail(request,product_id):
product= get_object_or_404(Product,pk=product_id)
return render(request, 'detail.html',{'product':product})
@login_required(login_url="/account/signup")
def upvote(request,product_id):
if request.method=='POST':
product= get_object_or_404(Product,pk=product_id)
product.votes_total+=1
product.save()
return redirect('/hello/'+str(product.id))

View File

@ -37,8 +37,8 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'products.apps.ProductsConfig', 'hello.apps.HelloConfig',
'accounts.apps.AccountsConfig', 'account.apps.AccountConfig',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
@ -127,7 +127,6 @@ USE_TZ = True
# https://docs.djangoproject.com/en/2.2/howto/static-files/ # https://docs.djangoproject.com/en/2.2/howto/static-files/
STATICFILES_DIRS=[ STATICFILES_DIRS=[
os.path.join(BASE_DIR, 'heroine/static/') os.path.join(BASE_DIR, 'heroine/static/')
] ]
@ -137,10 +136,13 @@ STATIC_ROOT=os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/' STATIC_URL = '/static/'
MEDIA_ROOT=os.path.join(BASE_DIR, 'media') MEDIA_ROOT=os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/' MEDIA_URL = '/media/'

Binary file not shown.

BIN
heroine/static/army.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
heroine/static/b1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
heroine/static/b2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

BIN
heroine/static/b3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
heroine/static/c1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
heroine/static/c2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
heroine/static/c3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
heroine/static/cleaners.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
heroine/static/corona1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

BIN
heroine/static/d1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
heroine/static/d2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
heroine/static/d3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
heroine/static/doctor.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

BIN
heroine/static/e2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
heroine/static/e3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
heroine/static/e4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
heroine/static/f1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
heroine/static/f2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
heroine/static/f3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
heroine/static/fb.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
heroine/static/fb2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
heroine/static/g1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
heroine/static/g2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
heroine/static/g3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
heroine/static/h1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
heroine/static/h2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
heroine/static/h3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
heroine/static/help1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
heroine/static/i2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
heroine/static/i3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
heroine/static/i4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
heroine/static/i5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
heroine/static/i6.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
heroine/static/insta.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
heroine/static/j1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
heroine/static/k1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
heroine/static/k2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
heroine/static/k3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
heroine/static/maa.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
heroine/static/ng03.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
heroine/static/ngo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

BIN
heroine/static/ngo1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

BIN
heroine/static/police.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
heroine/static/s1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
heroine/static/s2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Some files were not shown because too many files have changed in this diff Show More