skip to Main Content

Unsupported lookup 'level' for DateTimeField or join on the field not permitted – Twitter API

this is my view.py @list_route(methods=["post"]) def created_in_range(self, request): response = {} data = request.POST start = dateutil.parser.parse(data['start']) end = dateutil.parser.parse(data['end']) page_no = data['page_no'] tweets = Tweet.get_created_in_range(start, end, int(page_no)) serializer = TweetSerializer(tweets, many= True) response["data"] = serializer.data return Response(response, status= status.HTTP_200_OK)…

VIEW QUESTION

Unsupported lookup 'level' for DateTimeField or join on the field not permitted – Twitter API

this is my view.py @list_route(methods=["post"]) def created_in_range(self, request): response = {} data = request.POST start = dateutil.parser.parse(data['start']) end = dateutil.parser.parse(data['end']) page_no = data['page_no'] tweets = Tweet.get_created_in_range(start, end, int(page_no)) serializer = TweetSerializer(tweets, many= True) response["data"] = serializer.data return Response(response, status= status.HTTP_200_OK)…

VIEW QUESTION

Displaying images in html – Django – SEO

I have a little problem, and I dont have idea why my project doesn't work how I want. I have a models.py class Strona(models.Model): title = models.CharField(max_length=250, verbose_name="Tytuł", help_text="Podaj tytuł artykułu") slug = models.SlugField(unique=True, verbose_name="Adres url SEO", help_text="Automatycznie tworzony przyjazny…

VIEW QUESTION
Back To Top
Search