skip to Main Content

Django redis for notifications

I have build a REST API with Django REST framework. In the app there is a need for facebook-type notifications ( new friend request, new message etc. ). Currently I'm handling this using long-polling: front client sends GET request my…

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
Back To Top
Search