Re: reg: How to call multiple APIView in one single web page as a list of items?

2019-12-05 Thread Daniel Roseman
On Wednesday, 4 December 2019 18:32:25 UTC, Amitesh Sahay wrote: > > I am in the process of developing a small project using django rest > framework, and within that requirement, I need to list every table in one > single page. Below is the code snippet. > > class QuizList(APIView): >

Re: reg: How to call multiple APIView in one single web page as a list of items?

2019-12-05 Thread Integr@te System
Hi Issuer, U see QuizList bc of Question queryset been get validate_data when initilize quiz object instance. Plz refer to docs to customise ur other view. https://www.django-rest-framework.org/api-guide/serializers/ On Thu, Dec 5, 2019, 02:15 'Amitesh Sahay' via Django users <

Re: reg: How to call multiple APIView in one single web page as a list of items?

2019-12-04 Thread 'Amitesh Sahay' via Django users
Hi, There is no error. But based on the urls settings I could see the "QuizList" output to my web page. Other than that, other serializers are not being displayed there. Below is the serializers.py  from rest_framework import serializers from .models import Quiz, Question, QuizTakers, Answer,

Re: reg: How to call multiple APIView in one single web page as a list of items?

2019-12-04 Thread Integr@te System
Hi Issuer, Plz show result with errors. Tks. On Thu, Dec 5, 2019, 01:31 'Amitesh Sahay' via Django users < django-users@googlegroups.com> wrote: > I am in the process of developing a small project using django rest > framework, and within that requirement, I need to list every table in one >

reg: How to call multiple APIView in one single web page as a list of items?

2019-12-04 Thread 'Amitesh Sahay' via Django users
I am in the process of developing a small project using django rest framework, and within that requirement, I need to list every table in one single page. Below is the code snippet. class QuizList(APIView): renderer_classes = [TemplateHTMLRenderer] template_name = 'adminView.html'