Skip to content Skip to sidebar Skip to footer
Showing posts with the label Django Rest Framework

Password Validation Not Work In Django-rest-framework

when I register new user at that time password validator not work.(e.g. When I enter admin123 and p… Read more Password Validation Not Work In Django-rest-framework

How Can I Add Field In Serializer?

Below is my serializer.py file: from rest_framework import serializers class TaskListSerializer(s… Read more How Can I Add Field In Serializer?

Where To Change The Form Of Json Response In Django Rest Framework?

Lets say I have a model: class MyModel(models.Model): name = models.CharField(max_length=100) … Read more Where To Change The Form Of Json Response In Django Rest Framework?

Simple Operations With Data Requested From A Django Model

I am trying to write a simple web application, where i can upload csv files and return the headers … Read more Simple Operations With Data Requested From A Django Model

Encoded Video's Path Gets Changed In Database After Encoding With Ffmpeg And Celery And Works As Normal Without Celery

I have this code to transcode video and it works well without celery. With celery, the path of the … Read more Encoded Video's Path Gets Changed In Database After Encoding With Ffmpeg And Celery And Works As Normal Without Celery

Automatically Append Host, Port No And Media Folder Path In Url While Retrieve In Django Rest Framework

I'm using Django rest framework APIView method to retrieve image field (Image saved in local an… Read more Automatically Append Host, Port No And Media Folder Path In Url While Retrieve In Django Rest Framework

Icontains And Getlist Django Python

We are trying to return a list of titles for the Django API, in which the title can have a few keyw… Read more Icontains And Getlist Django Python

Create A Nested Serializer With Django Rest Framework, But Without Primary Keys As Identity

I have two models to expose via an API: every RegionValue has a ForeignKey to a MapAnswer. I wish t… Read more Create A Nested Serializer With Django Rest Framework, But Without Primary Keys As Identity