Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8719609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:50:23+00:00 2026-06-13T06:50:23+00:00

Building a site with Django and my index.html page is not rendering images properly.

  • 0

Building a site with Django and my index.html page is not rendering images properly. The image loads up fine when I open the HTML file in the browser, but when I do python manage.py runserverfrom powershell the HTML page doesn’t render any of the images.

The code is below– why is it not rendering when running in the server but works when I open in browser?

<!DOCTYPE html>
<head>Q&A</head>
<body>
<h1><img src="c:/users/chris/desktop/logo.jpg"></img></h1>
</body>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:50:24+00:00Added an answer on June 13, 2026 at 6:50 am

    Django needs to know the location of the static content to server them.
    Do the following:

    1. Set the path for settings/STATIC_DIR to the place where you are storing your images
    2. Provide a STATIC_URL which would appear to client
    3. Pass the context_instance from your view code to the template
    4. Use the url in the template {{STATIC_URL}}path_to_your_image_from_static_dir
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a ecommerce site with django and i'm working on the page that
I'm building an ecommerce site with django. I want to build a page that
I'm building a site in django that interfaces with a large program written in
I'm building a site with django that lets users move content around between a
I am building an article site using django. I've added many to many relation
I am building a dating site in Django / Python. I have birthday dates
I'm test building a scraping site with django. For some reason the following code
I'm building a real estate site in Django and have a Home model, which
I am building a Django site framework which will power several independent sites, all
I am new to Django, i was going through this Django site for building

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.