Hi Pradeep,
You need ti add the default value for the image other wise you get that error.
EX: profile_pic = models.ImageField(upload_to='uploads/',default='defaults/no-img.png')
Regards,
Jithendra Kumar U ,
Jithendra Kumar U ,
PYTHON, PHP & UI Developer
9666 544 180, 6300 639 675
On Tue, Jun 4, 2019 at 9:11 PM Pradeep Singh <replyveer25@gmail.com> wrote:
why i am getting these error ..please help me to fix it--thanks in advance
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANwgZcYJBTbKeAwOh4gqc4nYu_J8DT%3DjF5CYgLRA2vW8Nu_16Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFj3zBLOr7FZC1VgDNac_q3S7qDmtxZUys3q5fPXQHKTRZK12A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment