{% load static %} in the first link of your template. You have below code <img src="{% static 'images/django.jpeg' %}" alt='django reinhardt' />
The line should be <img src="{% static 'django.jpeg' %}" alt='django reinhardt' /> 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 <debs.fo...@gmail.com> wrote: > 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 > <http://about.me/daniel.bojorge?promo=email_sig> > *Curso Desarrollo Web con Python usando Django 2.1 Para Principiantes* > <https://goo.gl/oeT5Sx> > *WebService RestFul API con Python usando Django RestFrameWork* > <https://goo.gl/j8i34C> > *Fácil Replicación de Cualquier Base de Datos y/o Sistema Operativo* > <https://goo.gl/HjtExs> > *Programación en Capas (Web y Escritorio)* <https://goo.gl/zGZpSD> > Mi Blog <http://debsconsultores.blogspot.com> > Nicaragua > > "Si ustedes permanecen unidos a mí, y si permanecen fieles a mis > enseñanzas, pidan lo que quieran y se les dará. > (Juan 15:7 DHH) > Bendito el varón que se fía en el SEÑOR, y cuya confianza es el SEÑOR. > (Jeremías 17:7 RV2000) > > > > El mar., 2 abr. 2019 a las 12:36, Agbonxoft Prince (<prinxg...@gmail.com>) > escribió: > >> Try loading static , if it's not loaded >> *{% load static %}* in the HTML page >> >> >> On Tue, Apr 2, 2019, 19:01 Sandip Nath <techsan...@gmail.com> 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 os.path.join(BASE_DIR, 'static') and again >>> assign this variable to STATICFILES_DIR and kept the STATIC_URL as >>> "/static/". In the index.html written that: >>> <img src="{% static 'images/django.jpeg' %}" alt='django reinhardt' /> >>> >>> But after doing all this I am getting only the text of alt and no image. >>> Where I am wrong? Please help. >>> >>> -- >>> 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 post to this group, send email to django-users@googlegroups.com. >>> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/bbaac132-6d24-43a3-8278-fe5878c0b694%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/bbaac132-6d24-43a3-8278-fe5878c0b694%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> 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 post to this group, send email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAKbA5VTtt0Gbjn-TPtxhpgDbf1T5EwAUhnPr%2BT%3DqmMmNU%3DsO5A%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAKbA5VTtt0Gbjn-TPtxhpgDbf1T5EwAUhnPr%2BT%3DqmMmNU%3DsO5A%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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 post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAMQeQjb-%3D5vCMYUsZG-RgmPTMxft1mxDWW0w9fErqzYmEbNZMg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAMQeQjb-%3D5vCMYUsZG-RgmPTMxft1mxDWW0w9fErqzYmEbNZMg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMKMUjsZHGjrkdE77YTNBXNcwbqg-bqMJvhxRsOx5%3D1-FehtWg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.