How to setup CSRF in my Web API application

2019-03-11 Thread Alexander Lamas
Hi guys, I'm new to DRF, and I'm trying to add CSRF token validation in my Web API application. I have added the ``` {% csrf_token %} ``` inside of view body. DJANGO is adding an automatic hidden field with a CSRF token as a value. Is that the correct way on the client side? Also, do I h

how to use multithreading concepts in Django Rest Framework?

2019-03-11 Thread mohamed fazil
I am using Django rest framework. I had a rest URL when i call that URL at a time from various 3, 4 streaming client, I got a response from only one client remaining client not responding me for that purpose only I want to know how to use multithreading in Django rest framework? how to resolve

Re: Dynamically Passing Variables Into The Serializer

2019-03-11 Thread Gonzalo Amadio
Hi Joseph, does this work? https://www.django-rest-framework.org/api-guide/serializers/#including-extra-context https://micropyramid.com/blog/django-rest-framework-send-extra-context-data-to-serializers/ El lun., 11 mar. 2019 a las 14:31, Joseph Peck () escribió: > Even though it was tangential

Re: Documentation for "Tutorial 1: Serialization" need to another version for Windows OS

2019-03-11 Thread Edely Gomes
Hey, Trong. About your virtual environment, in Windows usualy you activate the env with a command like .\env\Scripts\activate No need for `python -m source` If you are using Linux, you would do source /env/bin/activate Are you sure you are activating your environment? Em domingo, 10 de fev