form not saving in site but saving in admin panel

I don’t know what is wrong but when adding a record in admin panel it is ok and when trying in the site it is not working.

models.py

from django.db import models
from django.contrib.auth.models import User
import os
from django.utils import timezone
import datetime

class prayers_records(models.Model):

	now = datetime.datetime.now()
	person_name = models.CharField(max_length=200, null=True)
	prayer_name = models.CharField(max_length=200, null=True)
	record_date = models.DateField()
	record_time = models.IntegerField()
	prayer_rewards = models.IntegerField(default=0)


	def __str__(self):
		return self.person_name

views.py

from django.shortcuts import render,redirect
from .models import *
from .forms import *
from datetime import datetime
from django.utils import timezone


def firstpage(request):

	now = datetime.now()
	the_time = int(now.hour)
	the_date = datetime.today().strftime('%Y-%m-%d')

	if request.method=="POST":
		
		form = PrayerForm(request.POST or None, request.FILES or None)
		
		if form.is_valid():

			# add logic to code
			form.save()
			return redirect('first-page')
	
	else:
		
		form = PrayerForm

	return render(request, 'prayers.html', {'the_date':the_date, 'the_time':the_time, 'form':form})

prayers,html

<form action="" method="POST" enctype="multipart/form-data">

	<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
    <div class="form-gap" style="padding-top: 10px;"></div>
    <div class="container">
	<div class="row">
		<div class="col-md-4 col-md-offset-4">
            <div class="panel panel-default">
              <div class="panel-body">
                <div class="text-center">
                  <h3><i class="fa fa-lock fa-4x"></i></h3>
                  
                  <h2>Please fill all fields</h2>
             
                  <div class="panel-body">
                    <form role="form" autocomplete="off" class="form" method="post">
                        {% csrf_token %}

                      <div class="form-group">
                        <div class="input-group">
                          <span class="input-group-addon"><i class="glyphicon glyphicon-envelope color-blue"></i></span>
                               <input type="text" name="person_name" class="form-control" placeholder="Enter Your Name" maxlength="200" required id="id_person_name">
                        </div>
                      </div>

						<div class="form-group">
                        <div class="input-group">
                          <span class="input-group-addon"><i class="glyphicon glyphicon-envelope color-blue"></i></span>

                         <select Name="prayer_name" Size="Number_of_options" class="form-control" placeholder="Prayer Name" required id="id_prayer_name">  
							  <option> Fajer Prayer </option>  
							  <option> Thuhor Prayer </option>  
							  <option> Aser Prayer </option>  
							  <option> Maghreb Prayer </option>
							  <option> Eisha Prayer </option>  
						</select> 
                        </div>
                        </div>

						<div class="form-group">
                        <div class="input-group">
                          <span class="input-group-addon"><i class="glyphicon glyphicon-envelope color-blue"></i></span>
						    <input type="text" name="record_date" class="form-control" disabled value='{{the_date}}' placeholder="Current Date"  required id="id_record_date">
                        </div>
                        </div>

						<div class="form-group">
                        <div class="input-group">
                          <span class="input-group-addon"><i class="glyphicon glyphicon-envelope color-blue"></i></span>
						    <input type="text" name="record_time" class="form-control" disabled value='{{the_time}}' placeholder="Current Time"  required id="id_record_time">
                        </div>
                        </div>

						<div class="form-group">
                        <div class="input-group">
                          <span class="input-group-addon"><i class="glyphicon glyphicon-envelope color-blue"></i></span>
   							 <input type="number" name="prayer_rewards" disabled value=0 class="form-control" placeholder="Reward Price"  required id="id_prayer_rewards">
                        </div>
                        </div>

                      <div class="form-group">
                         <button class="btn btn-lg btn-primary btn-block" type="submit">Submit </button>
                      </div>
                    </form>
                  </div>
                </div>
              </div>
            </div>
          </div>
	</div>
</div>

</form>

forms.py

rom django import forms
from django.forms import ModelForm
from .models import *
from django.forms import SelectDateWidget
import datetime

class PrayerForm(ModelForm):
	class Meta:
		model = prayers_records
		fields = ('person_name','prayer_name','record_date','record_time','prayer_rewards')
		
		labels = {

		'person_name': '',
		'prayer_name':	'',
		'record_date':'',
		'record_time':'',
		'prayer_rewards': '',

		}

		record_date = forms.DateField(
    		widget=forms.SelectDateWidget(
        	years=range(datetime.date.today().year - 15, 1920, -1),
        	attrs={'class': 'form-control', 'placeholder': 'Current Date',}
    		)
		)

		record_time = forms.DateField(
    		widget=forms.SelectDateWidget(
        	years=range(datetime.date.today().year - 15, 1920, -1),
        	attrs={'class': 'form-control', 'placeholder': 'Current Time',}
    		)
		)


		widgets = {

		'person_name': forms.TextInput(attrs={'class':"form-control", "placeholder":"Enter Your Name"}),
		'prayer_name':	 forms.TextInput(attrs={'class':"form-control", "placeholder":"Prayer Name"}),
		'prayer_rewards': forms.NumberInput(attrs={'class':"form-control", "placeholder":"Reward Price"}),

		}

Please be more specific here. What do you mean by “not working”? Are you getting any error messages? What is happening that you’re not expecting? (Or what is not happening that you are expecting to happen?)

the page refresh but not saving in db

The variable form should be set to an instance of the PrayerForm, not the class itself.
form = PrayerForm()

Also, I don’t see where you’re rendering the form itself in your template. It looks like you might be trying to manually render the widgets directly rather than rendering the form.

no that was the mistake thanks