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-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p&index=13

On Thursday, July 16, 2020 at 1:08:08 PM UTC+8, 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 but they are not working 
> and our OS platform is Windows 10 OS. We know file paths are different in 
> Windows OS when compared to non Windows OS platforms. Did anyone use Window 
> OS in this community and able to save image successfully?
>
> STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
>> STATIC_URL = '/static/'
>>
>>
>> MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
>> MEDIA_URL = '/media/'
>>
>>
> Another challenge that we have is  that the above question is related to 
> development, becase we use Windows laptop for our application evelopment, 
> but once the code is integrated we need to deploy the code in our hosting 
> server that is running with Linux OS. So we are not sure how to handle the 
> case of multi OS platforms?
>
> I'm sure many people could have resolved this in their applications. I 
> appreciate if you can share suitabe recommendations?
>
> Best regards
>  
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8ee01fd9-7d32-4bfc-89da-d057df415fcfo%40googlegroups.com.

Reply via email to