Python Forum
display local images on django website
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
display local images on django website
#1
I am using python Django framework.
Image is not displaying when I run the development server.
This is the code, everything else working fine but image is just showing as thumbnail.

<img src="C:\Users\mp88_\OneDrive\Desktop\albumLogos\B0097RFAMU.jpg">

<h1>{{ album.album_title }}</h1>
<h3>{{ album.artist }}</h3>

<ul>
  {% for song in album.song_set.all %}
    <li>{{ song.song_title }} - {{ song.file_type }}</li>
  {% endfor %}
</ul>
would anyone know why?
Reply


Messages In This Thread
display local images on django website - by mp3909 - Mar-30-2020, 05:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Fetching Images from DB in Django Dexty 2 1,765 Mar-15-2024, 08:43 AM
Last Post: firn100
  Django images will not load pythonpaul32 3 2,847 Jul-20-2023, 10:30 AM
Last Post: Gaurav_Kumar
  please help me with my django website? MetsxxFan01 0 1,539 May-05-2022, 11:38 PM
Last Post: MetsxxFan01
  Cant Download Images from Unsplash Website firaki12345 1 2,338 Feb-08-2021, 04:15 PM
Last Post: buran
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,371 Jun-30-2019, 12:21 AM
Last Post: scidam
  How to get this function using Django in building a website? py2exe 0 2,469 Jul-25-2018, 09:56 AM
Last Post: py2exe
  Django packages for website with paid user accounts jmarchini 2 3,571 Jan-08-2018, 09:10 AM
Last Post: SarbjitGrewal
  Display google recpatcha at the end of the form django-allauth app prithvi 2 4,165 Aug-08-2017, 09:19 PM
Last Post: prithvi
  read text file using python and display its output to html using django amit 0 18,347 Jul-23-2017, 06:14 AM
Last Post: amit
  How to integrate a python algorithm in a Django website daekch 2 5,344 Mar-21-2017, 10:58 AM
Last Post: Jeanne

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020