Re: Built-in documentation "interact" over HTTPS fails with "Mixed Content"

2019-05-29 Thread Danny Flack
I should note the server is behind CloudFlare's Flexible SSL service which may be the issue since it's a "faux https" middleman. Flexible SSL encrypts traffic from Cloudflare to end users of your website, >> but not from Cloudflare to your origin server. This i

Built-in documentation "interact" over HTTPS fails with "Mixed Content"

2019-05-29 Thread Danny Flack
When using the built-in documentation following the instructions at https://www.django-rest-framework.org/topics/documenting-your-api/, the "Interact" button makes insecure requests while the domain is served over SSL. Google Chrome blocks the request with the message: "Mixed Content: The page

How to filter queryset for serializing a nested serializer using instance in django rest framework?

2019-05-29 Thread Rahul Sarma
My serializers.py file: from rest_framework import serializers from diagnosisApp.models import Question, Option class OptionSerializer(serializers.ModelSerializer): class Meta: model = Option fields = ('id', 'content') class QuestionSerializer(seri