Thursday, July 30, 2020

Re: load static in css file

{% static 'imag.jpg' %}   instead of this try

{% static "images/imag.png" %}

On Thu, 30 Jul 2020 at 6:07 PM, Chander shekhar <bestcsp2@gmail.com> wrote:
I am unable to fetch images from css file .
I have used {% load static %}
{% static 'imag.jpg' %}
buti can't fetch.console is saying image not found.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/554cbaf1-3b94-40b4-a0f1-efe0bd3f24ceo%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALKGVio%3DAsCafgcd-zfjBb2of-RWbPaTwwGjf7sXbjstgFdM6Q%40mail.gmail.com.

No comments:

Post a Comment