2

I'm trying to build a platform for trades people and customer to share reviews and post jobs

its a project to help me understand Django, python and how its all linked together

I have a jobs page where you should be able to see the active and inactive jobs along with a picture within a bootstrap card setting

in Django admin the field is there to add image which I have done. however it does not show on my site.

Pillow is installed

MEDIA directory in settings is there

template is there with enctype=multiport/form-data, <img src=> is there

jobs page

Django admin

404

And its still doesn't seem to be there I'm not sure why

Hopefully the images show you enough to help me get this fixed as I feel I have tried everything

asked Nov 6, 2025 at 15:04

1 Answer 1

1

In your settings.py, configure your MEDIA_URL and MEDIA_ROOT settings:

import os
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media'
)

Then in your project-level urls.py, add:

from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
 # ... the rest of your URLconf goes here ...
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

This should serve user-uploaded media files in development but it's not suitable for production. You would need a dedicated cloud service provider such as Cloudinary to serve media files in production.

answered Nov 6, 2025 at 15:29
Sign up to request clarification or add additional context in comments.

3 Comments

Thank you for this. I did this, its actually resolved now. I just had to re-add the images and then it loaded into the media file i created. All the code was correct it just wasn't show the image with a refresh. thank you for answering so quickly

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.