Re: How to save images posted by application users

2020-07-18 Thread Liu Zheng
Hi. Here's a very nice video tutorial on how to handle images with media. https://www.youtube.com/watch?v=FdVuKt_iuSI&list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p&index=8 Also to your question on how to deploy it in production, check this video. https://www.youtube.com/watch?v=Sa_kQheCnds&list=PL-osi

Re: How to save images posted by application users

2020-07-17 Thread Mottaz Hegaze
Try to use subfolder in media, upload_to='/images' On Fri, 17 Jul 2020, 7:18 am Exactly musty, wrote: > I also had the same problem long time ago I remember i felt like hanging > myself,here is what I did, i deleted the media folder,created by django, > try this if it will work > > -- > You re

Re: How to save images posted by application users

2020-07-16 Thread Exactly musty
I also had the same problem long time ago I remember i felt like hanging myself,here is what I did, i deleted the media folder,created by django, try this if it will work -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from thi

Re: How to save images posted by application users

2020-07-16 Thread Ram
Hi Mottaz, Thank you for your suggestion. We already tried a model with ImageField but not luck yet. Here is our code snippet image = models.ImageField(upload_to='media', > null=True, blank=True) image2 = models.ImageField(upload_to='media', > null=True, blank=True) image3 = models.ImageField(upl

Re: How to save images posted by application users

2020-07-16 Thread Mottaz Hegaze
You need a model with ImageField or FileField On Thu, 16 Jul 2020, 7:07 am Ram, wrote: > Hi, > > We need to save images posted by our application users and the images will > be displayed in application UI once they are saved successfully. We are > trying with these parameters in our settings.py

How to save images posted by application users

2020-07-15 Thread Ram
Hi, We need to save images posted by our application users and the images will be displayed in application UI once they are saved successfully. We are trying with these parameters in our settings.py but they are not working and our OS platform is Windows 10 OS. We know file paths are different in