Make sure u configured the Media_root and Media_url appropriately in the
settings.py file

On Thu, 24 Feb 2022, 18:18 Adeyemi Deji, <adeyemide...@gmail.com> wrote:

> They are two ways to this. But would talk about one, the other is more
> practical. Takeout the baseUrl variable and the forward slash, then use {{
> cmp.img.url }}. This should work and if it doesn't. Look for solutions by
> googling it. Sure u would find answers to ur question.
>
> On Thu, 24 Feb 2022, 17:20 Kasper Laudrup, <laud...@stacktrace.dk> wrote:
>
>> On 24/02/2022 16.41, Suresh_Chilukuri wrote:
>> > I am asking how we can get image from function based views dynamically
>> > in template file
>> >
>>
>> What do you mean by dynamic?
>>
>> Do you mean passing a list of files from a specific sub directory in the
>> static folder to the template?
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> 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/42250de8-c569-ed45-f1d6-7c2143e79050%40stacktrace.dk
>> .
>>
>

-- 
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/CAEO1GroCvpACNOcY7ngM%3DtC%3DpKoprUAONP8qbymkruhP-aui2Q%40mail.gmail.com.

Reply via email to