Questions tagged [django-media]
237 questions
0
votes
1 answer
Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/media/Profile_pics/itachi.jpg
I am trying to load profile picture for each user default profile picture for user is default.jpg
But happening is i am unable to load profile picture Page Not found Error occurs.
After running my program the media directory created in my project…

Vishal Patil
- 35
- 6
0
votes
0 answers
Django media image full path for PIL
i am trying to get the full path of an uploaded django image (to the media folder) to use it with PIL but it returns FileNotFoundError
code:
from PIL import Images
img_dir = Image.objects.all().first()
img = img_dir.image1.url
im =…
user14041846
0
votes
1 answer
Static media images are not displaying in Django
I am working on an online bookstore app. I have a book details page that displays book information in a table, including the book cover image. I am having an issue where the images display correctly when I runserver, however a team member is unable…

sharb
- 1
0
votes
1 answer
Image in web browser not getting rendered
Image in web browser not getting rendered, showing alt attribute's message, I am using Django's lightweight server not only that but the image is not visible even in simple static html file but it is getting rendered when it's address in pasted in…

Aditya Singh
- 47
- 2
- 8
0
votes
0 answers
Django not displaying image with correct settings
I'm trying to make a video/thumbnail model for displaying some videos. It shows the video and I can access the video file (FileField) in the browser, however, I get a 404 error for the thumbnail (ImageField). Since I can access the videos, I assume…

Kurosh Ghanizadeh
- 539
- 1
- 4
- 16
0
votes
0 answers
How to properly configure media files editing and viewing in templates
I have create a small project , where i am stuck at one point
Issue : not able to get images dynamically and display in template
i.image.url -> at this line in html images are not coming from folder media
when i runserver the media folder is not…

codeholic24
- 955
- 4
- 22
0
votes
1 answer
Problem is that image is not saving . when i am select image and upload all code working properly but image does not save django
Problem is that image is not saving. when I am select an image and upload all the code working properly but the image does not save. I checked all the code line by line I do not understand what's the problem. I also see the media file any image is…
0
votes
1 answer
Image is not getting saved in the database django
I am trying to upload an image to the database. While posting the data I am not getting any error.
input for the image
Upload a different photo...

Lav Sharma
- 327
- 1
- 5
- 23
0
votes
0 answers
django media images wont display
I have deployed a Django project on a server. The project has a blog app in which you can add posts from the admin page. Each post has some paragraphs, a title, and an image. The posts get created perfectly, but sometimes when I revisit the site,…

Sam
- 379
- 2
- 10
0
votes
0 answers
Unable to show in frontend images uploaded via Django REST framework
I'm trying to create Django REST app, however I cannot manage to allow the url of the image to be accessible.
I managed to get the upload done, however when I have the URL there is no way to access the photo from browser. I stored them in folder…

someone12321
- 755
- 5
- 24
0
votes
2 answers
How to load my media files on Django Framework?
I cannot upload my media files.
In the URL I noticed that the text 'courses' appears,Instead of…

Botta
- 43
- 2
- 6
0
votes
1 answer
Django3.0: Images from database not showing-up after debug=False
After debug=False in my settings. Images from database not showing up otherwise they were. Static files are showing up real good. Even my media files were showing up before debug=False. Database has correct addresses of files but covers not showing…

Yagami
- 305
- 2
- 14
0
votes
1 answer
Retrieve image from django
I am completely beginner in Django, trying to make a table, which gets data from the Django database(included image). Here before adding the image field in the Django model, all was working perfectly. but I cannot get an image from the Django media…

Kanchon Gharami
- 777
- 1
- 11
- 30
0
votes
1 answer
Accessing folders present inside media folder in django
I am new to django. I have created application using it where user can see the videos of their undergoing subjects. I have uploaded multiple videos inside folder name uploadcbse and uploadncert which is present inside media directory. Now I want to…

Khushboo Patel
- 3
- 2
0
votes
0 answers
Relative media paths in TextFields for S3
I have a load of models that have TextFields which (sometimes) contain links to images which the users have uploaded when they edited those fields.
So a field might contain something like this:-
This is my image

bodger
- 1,112
- 6
- 24