Showing posts with the label django-rest-framework

[FIXED] ModuleNotFoundError: No module named 'rest_framework' (tried many solutions but not working)

Issue I have encountered this error. ModuleNotFoundError: No module named 'rest_framework'…

[FIXED] ModuleNotFoundError: No module named 'rest_framework'

Issue I'm trying to follow a tutorial on DRF, but when I'm about to run "migrate"…

[FIXED] Raise_exception not working with token base authentication

Issue I'm trying to run my tests on status codes while i'm not providing token on POST requ…

[FIXED] DRF: Validate nested serializer data when creating, but not when updating

Issue When using writable nested serializers in DRF there is the known problem with validating even…

[FIXED] How to delete corresponding row with ManyToMany relationship in Django?

Issue I am trying to make a basic pizza app with two API's, toppings and pizzas. When I delete …

[FIXED] django rest framwork filter by year or month

Issue How can i filter date by year or by month in django rest framework my model class DailyJues…

[FIXED] Django Rest Framework Field Validation Issue

Issue My subscription view is located inside of UserViewSet. I'm wondering why I'm getting …

[FIXED] How to sort objects by function inside model? Django

Issue In my Product model I have a function total_thumbs_up which count how many users gave thumb…

[FIXED] Django Admin Panel not showing on production

Issue I have recently deployed project on linux server. I can't access admin panel by going to …

[FIXED] Deploying React front end with Django session based auth doesnt work over HTTPS

Issue So I have a working LOCAL Twitter clone called Hater but cant deploy front end b/c I cant acc…

[FIXED] Using Django REST framework for real-time chat?

Issue I'm trying create a real-time chat app with Django and Vuejs . I would like to use djang…