[Answer]-How can I get fixed output from my django database

1👍

question = Questions.objects.all()

returns a queryset which you obviously print in your template. Try iterating over your queryset in your html template like:

{% for q in questions %}
   {{ q.question_text }}{% if not forloop.last %}, {% endif %}
{% endfor %}

Hope this helps.

👤Jingo

Leave a comment