Re: Django Image and File

2020-02-27 Thread Soumen Khatua
Thanks for your response. On Thu 27 Feb, 2020, 10:03 PM Robert Rajendra, wrote: > Store only the path in DB and image file in server folder this is the best > practice, save the file in some folder and forward the path to DB Object > so that your DB can remember the path of the file and you can

Re: Django Image and File

2020-02-27 Thread Robert Rajendra
Store only the path in DB and image file in server folder this is the best practice, save the file in some folder and forward the path to DB Object so that your DB can remember the path of the file and you can load it in the frontend, here is a snippet that you can use import FileSystemStorage

Django Image and File

2020-02-26 Thread Soumen Khatua
Hi Folks, Actually I have one image filed called profile_pic and another is file field called documents but I don't know what is best practise to store it. Most importantly how I can make each user details is unique. Thank you in advance Regards, Soumen -- You received this message because yo