Custom additional Error Message along with 200 status code

2018-05-07 Thread vallabh vyas
Hi All,

I am new to Django/ Django Rest Framework. I want custom message along with 
custom error message and status code 200 for ValidationError. 

Error message can be.

1. Email not found

2. Wrong password


I had asked this question in stack someone had answered also. but i would 
like to know is there any better way to do that.. below is the stack link

https://stackoverflow.com/questions/50214614/drf-custom-serializer-error-fomat/


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Serializer Relationship using ManyToMany

2018-04-27 Thread vallabh vyas
Can anyone help me with this?
I am using ManyToManyField and i want to fetch related related values using 
Generic View. 

https://stackoverflow.com/questions/50048442/django-rest-manytomanyfield-fetch-related-values-using-serializer


Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What are the best sources to learn Django rest framework

2018-04-18 Thread vallabh vyas
Thanks you so much.

I had completed most of my APIs with JWT authentication. 

I had few doubts can i ask here itself our create new thread ??


On Wednesday, 18 April 2018 23:50:13 UTC+5:30, RobertF wrote:
>
> Check out these links:
>
> http://www.django-rest-framework.org/topics/tutorials-and-resources/
> https://realpython.com/django-rest-framework-quick-start/
>
> https://codeburst.io/building-an-api-with-django-rest-framework-and-class-based-views-75b369b30396
>
> https://blog.apptension.com/2017/09/13/simple-nested-api-using-django-rest-framework/
>
> I found this book particularly helpful in figuring out how to design 
> restful urls in Django:
> http://www.restapitutorial.com/media/RESTful_Best_Practices-v1_0.pdf
>
> On Wednesday, April 11, 2018 at 2:45:27 AM UTC-7, vallabh vyas wrote:
>>
>>
>> I am new to Django and Django rest framework. I wanted to learn more 
>> deeply please suggest some best sources to learn Django rest framework.
>> From there documentation i had learned basics but for my project i need 
>> some more flexibility and learning tutuorial.
>>
>> I am trying to build Backend  + REST API for mobile app.
>> My Django Rest framework will have many API calls with complex query.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


What are the best sources to learn Django rest framework

2018-04-11 Thread vallabh vyas

I am new to Django and Django rest framework. I wanted to learn more deeply 
please suggest some best sources to learn Django rest framework.
>From there documentation i had learned basics but for my project i need 
some more flexibility and learning tutuorial.

I am trying to build Backend  + REST API for mobile app.
My Django Rest framework will have many API calls with complex query.










-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.