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
>
> *Dude Use this code*
>
*image = models.ImageField(upload_to='media/') *
*and also make sure to install pillow*
--
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
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*
Hello Omar,
You need to install "pillow" python module in order to work with image files.
Regards,
Amitesh Sahay91-750 797 8619
On Tuesday, 12 March, 2019, 6:51:09 pm IST, omar ahmed
wrote:
helloi want to add image field in my modeli typed :
image = models.ImageField()but :
Cannot
ok i will try it ... thank you
On Tuesday, March 12, 2019 at 3:24:04 PM UTC+2, Suresh Kannan wrote:
>
> Hi,
>
> https://stackoverflow.com/a/49867787/4037275
>
> On Tue, 12 Mar 2019 at 09:20, omar ahmed >
> wrote:
>
>> hello
>> i want to add image field in my model
>> i typed :
>> image = models
Hi,
https://stackoverflow.com/a/49867787/4037275
On Tue, 12 Mar 2019 at 09:20, omar ahmed 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
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 ema
7 matches
Mail list logo