I’m making quiz app and this is an answer form with input type radio, but it’s not working(there’s no error or anything). can somebody help me fix it or suggest a different approach?
from django import forms
What do you mean it’s “not working”? What isn’t happening that you’re expecting to have happen, or what is happening that you’re not expecting to see?
Also, when posting code here, please enclose it between lines of three backtick - ` characters to preserve the formatting of the code. This means you’ll have a line of ```, then the lines of code, then another line of ```.
So I’ll go back to my earlier question, have you worked your way through the Django Tutorial?
(And by “working through”, I mean actually typing all the presented examples and exercises. The physical act of typing the code - and fixing the occasional mistake - greatly improves comprehension of the material. Just breezing through the material and copy/pasting it into an editor doesn’t provide nearly as much benefit.)
Cool, so then you’ll want to go back and review your work on the polls application - it’s a very close parallel to what you’re trying to do here. Pay particular attention to what data is being supplied to those views, what data is being retrieved from the database, what is being supplied to the templates, and which templates are being rendered for each page.