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 4238686
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:56:12+00:00 2026-05-21T02:56:12+00:00

Im trying to make a shopping portal with a recommendation system Not able to

  • 0

Im trying to make a shopping portal with a recommendation system

Not able to display images in the templates…
The HTML pages when opened without running the server opens them though
tried setting the MEDIA_URL and MEDIA_ROOT

settings as given:

MEDIA_ROOT = "/home/jose/Estore/estore/images/"
MEDIA_URL = '/images/'

The Model I defined is as given:

#Model for Books
from django.db import models

class Book(models.Model):

    title = models.CharField(max_length=100)
    section = models.CharField(max_length=50)
    authors = models.CharField(max_length=150)
    subject = models.CharField(max_length=50)
    publisher = models.CharField(max_length=50)
    publication_date = models.DateField(blank=True, null=True)
    price = models.DecimalField(max_digits=6,decimal_places=2)
    photo = models.ImageField(upload_to='product_photo/books/',blank=True)
    description = models.TextField()
    rating = models.DecimalField(max_digits=2,decimal_places=1)

    def __str__(self):
        return self.title
  • 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-05-21T02:56:13+00:00Added an answer on May 21, 2026 at 2:56 am

    Have you set your urlconf?

    http://docs.djangoproject.com/en/dev/howto/static-files/#serving-other-directories

    here is how to do that. You need to set this in order for static serving to work.

    Did this help?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new MVC user and I am trying to make shopping cart as
Trying to make a small countdown timer in my app but it's not working.
I'm trying to make shopping cart front end with localstorage, as there are some
I am using JQTouch to make s simple shopping cart, those not familiar with
I am learning Python, and I'm am trying to make a shopping cart (for
I'm trying to make a simple php shopping cart. I don't have any idea
I'm trying to make a drag and drop shopping cart for one of my
I am trying to make a simple shopping cart using cookies/sessions. It just contains
I'm trying to make a program, which is basically a shopping list. The purpose
I'm trying to display a user's shopping cart with the items listed. What I

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.