Re: Static image not getting displayed.

2019-04-02 Thread Chetan Ganji
{% load static %} in the first link of your template. You have below code The line should be Regards, Chetan Ganji +91-900-483-4183 ganji.che...@gmail.com http://ryucoder.in On Wed, Apr 3, 2019 at 1:13 AM Ing.Daniel Bojorge wrote: > See the development tools and look what path is it? > >

Re: Static image not getting displayed.

2019-04-02 Thread Ing.Daniel Bojorge
See the development tools and look what path is it? So, put STATIC_URL = '/static/' in your settings.py and {% load static %} in the first link of your template. Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge

Re: Static image not getting displayed.

2019-04-02 Thread Agbonxoft Prince
Try loading static , if it's not loaded *{% load static %}* in the HTML page On Tue, Apr 2, 2019, 19:01 Sandip Nath wrote: > Downloaded an image of Django Reinhardt and saved it in static/images > folder as django.jpeg. In the settings.py file created a variable > STATIC_DIR and assigned it

Static image not getting displayed.

2019-04-02 Thread Sandip Nath
Downloaded an image of Django Reinhardt and saved it in static/images folder as django.jpeg. In the settings.py file created a variable STATIC_DIR and assigned it os.path.join(BASE_DIR, 'static') and again assign this variable to STATICFILES_DIR and kept the STATIC_URL as "/static/". In the