ValueError: while trying to use the crispy forms

I am trying to make use of the crispy forms to display the form for inserting the data. I have a model as: class Athlete(models.Model): athlete_name=models.CharField(max_length=50) GENDER_CHOICES=( (‘M’,’Male’), (‘F’,’Female’), (‘O’,’Others’) ) gender=models.CharField(choices=GENDER_CHOICES,max_length=100) age=models.IntegerField() athlete_category=models.ForeignKey(Category,on_delete=models.CASCADE) image=models.FileField(upload_to=’static/athlete_img’, null=True) COUNTRY_CHOICES=( (‘np’,’nepal’), (‘in’,’india’), (‘uk’,’united kingdom’), (‘sp’,’spain’), (‘ch’,’china’) ) medals=models.IntegerField country=models.CharField(choices=COUNTRY_CHOICES,max_length=100) def __str__(self): return self.athlete_name In the forms.py…I have modelform… Read More ValueError: while trying to use the crispy forms