title: Questioning between django and two dates
body: <p>I wrote an application with django. But I want to question between two dates. I wrote code as below but the results are empty</p>
  
  <p>I want to list the records between the two dates I gave.
  fields should be in the form dateTimeField</p>
  
  <p><a href="https://ibb.co/Dp3qtCZ" rel="nofollow noreferrer">image 1</a>
  <a href="https://ibb.co/kMgLF2t" rel="nofollow noreferrer">image 2</a></p>
  
  <p>API: <a href="http://127.0.0.1:8000/api/appointments/list?user=2&amp;groupCode=1453&amp;startDate=2020-04-17+10:00:00&amp;endDate=2020-12-12+08:00:00" rel="nofollow noreferrer">http://127.0.0.1:8000/api/appointments/list?user=2&amp;groupCode=1453&amp;startDate=2020-04-17+10:00:00&amp;endDate=2020-12-12+08:00:00</a></p>
  
  <p>Model:</p>
  
  <p>`</p>
  
  <pre><code> user = models.ForeignKey(User, on_delete=models.CASCADE, default=0, blank=False)
   startDate = models.DateTimeField(blank=True)
   endDate = models.DateTimeField(blank=True)
   groupCode = models.CharField(max_length=50, blank=False)
  </code></pre>
  
  <p>`</p>
  
  <pre><code> class AppointmentsListAPIView(ListAPIView):
       serializer_class = AppointmentsCreateSerializer
       filter_backends = [django_filters.rest_framework.DjangoFilterBackend]
       filter_fields = ['customer', 'user', 'groupCode', 'startDate', 'endDate']
  
       def get_queryset(self):
           print(self.request.query_params.get('startDate'))
  
           queryset = Appointments.objects.filter(user=self.request.user,
                                             groupCode=self.request.query_params.get('groupCode'),
                                             startDate__gt=self.request.query_params.get('startDate'),
                                             endDate__lt=self.request.query_params.get('endDate'))
      return queryset
  </code></pre>
  
  <p>`</p>
  
  <p>Error</p>
  
  <p>RuntimeWarning: DateTimeField Appointments.endDate received a naive datetime (2020-12-12 08:00:00) while time zone support is active. RuntimeWarning)</p>
  
  <p>RuntimeWarning: DateTimeField Appointments.startDate received a naive datetime (2020-04-17 10:00:00) while time zone support is active.
    RuntimeWarning)</p>