Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
I’d use json cuz im not familiar with db.
3rd Feb 2021, 4:54 AM
H Ξ X V G 0 И
H Ξ X V G 0 И - avatar
+ 1
If you want to render your form where is a field with options, maybe this helps you: ... OPTIONS = [ ('O1', 'Option 1'), ('O2',. 'Option 2'), ... ] exam = models.CharField( ... choices=OPTIONS, ... ) ... This should be import in your forms.py file and then your form should be import in your views.py files. I hope this helps you.
7th Feb 2021, 4:42 PM
CLAD
CLAD - avatar