You need a model with ImageField or FileField

On Thu, 16 Jul 2020, 7:07 am Ram, <ram.mullap...@gmail.com> 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/CA%2BOi5F095b3_rr2qv02qrneLKs%2BySO1AjXedUv%3D653LY3cfDnw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BOi5F095b3_rr2qv02qrneLKs%2BySO1AjXedUv%3D653LY3cfDnw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAHV4E-cqB-S5xtKVQA1QyMCqoyZ0F6OHT%3DOPM034-iJ4OnmBEg%40mail.gmail.com.

Reply via email to