How to use ImageField in Django

preview_player
Показать описание
.
In order to make our Instagram cole app compelling and useful the most important feature that we are supposed to have is the ability to get pictures in our app.
.
This tutorial I'm going with the flow to build this Instagram app together with you and going throw the most pitfalls that you are going to face in the future and help you overcome it.
.
The main thing that I got from this video is dealing with the error that says "Image Attribute has no file associated with it" and from the video, the solution was to actually to place an if statement that checks if the file actually exists you can find that at 15:30 in the video.
.
I hope you are enjoying this series please let me know your thoughts in the comments section below.
.
I teach programming in python so if you are interested in that please let me know in the following social media platforms and I will give you free consulting time with me.
.
.
.
#djangoproject #pythonproject #django
Рекомендации по теме
Комментарии
Автор

Thank you a lot, bro. This video save my life. You're genius

ivancampelo
Автор

OH THANKS IT IS WORKING I FORGOT THIS <IMG SRC="" > THANKS 👍👍👍 YOU SAVE MY TIME

TURKISTONIM
Автор

Bro i appreciate the video! Spent a long time trying to figure this out

allenllewellynkra
Автор

Thank you a lot bro, I was getting the same error that not every post has an image and I couldn't find a solution. You really helped me. Appreciate you

Vlad-ozbm
Автор

Can you show us views py AND ITS NOT WORKING ONLY THE IMAGE NAME IS SHOWING ON WINDOW ❗❗❓❓❓❓

TURKISTONIM
Автор

AWESOME!
Keep showing django tutorail and python .
Thank!!

rushlearning
Автор

U R AWESOME !! Thanks a lot Bro,
Keep showing these errors which we encounter all the time to help us fix it

ahmedkhairy
Автор

When am giving default url to my image field, it's not working does anyone know why and how to fix that

shakthis