Tuesday, March 26, 2019

Re: add Image Field in model

Hello Omar, 

When creating a model you need to use "ImageField"

example

abc = models.ImageFields()

I hope thats what you are looking for. If you have any specific requirements do let me know.
Sorry for the delayed response.

Regards,
Amitesh Sahay


On Wednesday, 13 March, 2019, 5:55:15 pm IST, omar ahmed <omarkadytt@gmail.com> wrote:


i installed it
thanks Amitesh
but what about creating image field in model


On Wednesday, March 13, 2019 at 10:58:50 AM UTC+2, Amitesh Sahay wrote:
Hello Omar, 

You need to install "pillow" python module in order to work with image files.

Regards,
Amitesh Sahay
91-750 797 8619


On Tuesday, 12 March, 2019, 6:51:09 pm IST, omar ahmed <omark...@gmail.com> wrote:


hello
i want to add image field in my model
i typed :
 image = models.ImageField()
but :
 Cannot use ImageField because Pillow is not installed

--
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...@ googlegroups.com.
To post to this group, send email to django...@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/6101b636- 925a-4f22-9637-13678d2ecaf0% 40googlegroups.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/905656a7-ae5c-406e-967a-1183ad23e728%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment