Adding Images & Changing Models In Django | Python Django Tutorials In Hindi #27

Adding Images & Changing Models In Django | Python Django Tutorials In Hindi #27

CodeWithHarry

5 лет назад

110,363 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ijaz Ahmad
Ijaz Ahmad - 13.04.2023 19:22

If we don't apply make migrations and directly apply migrate
Will it be correct or not?

Ответить
Sunny Singh
Sunny Singh - 11.03.2023 20:38

love you brother

Ответить
Bhargav Choithwani
Bhargav Choithwani - 09.09.2022 09:32

When I tried to open the admin page it gave the error of "Incorrect padding".
Can someone please guide on this error ?

Ответить
Aayush Shrestha
Aayush Shrestha - 17.08.2022 21:55

how to make image optional?

Ответить
samuel
samuel - 13.07.2022 20:57

worst video I ever saw

Ответить
radeon blue
radeon blue - 07.07.2022 21:41

Thanks haris bhai. Mujhe bhi Dil chahiye.

Ответить
abhijeet
abhijeet - 02.06.2022 22:34

how to login in django admin????

Ответить
Aayush Yadav
Aayush Yadav - 17.05.2022 17:49

the card carousel is still in one line and not how its supposed to be even from your source code, Please help!

Ответить
CoderzAdda
CoderzAdda - 30.01.2022 19:00

Harry sir waiting for Social Networking app

Ответить
Prabin Joshi
Prabin Joshi - 22.01.2022 04:12

some of you might be getting error after putting the imagefield in the model
just go to your terminal and pip install Pillow

Ответить
melvyn dsouza
melvyn dsouza - 24.10.2021 14:24

BRO IN THIS ONE PROBLEM IS THERE WE HAVE TO UPLOAD A PRODUCT WITH ATLEAST A FOUR IMAGES IN ONE , SO I TRIE D TO MAKE BUT WHILE MIGRATION ITS ALL GOING HIDED THE ALL IMAGES

Ответить
Samuel Frank
Samuel Frank - 17.09.2021 17:46

Thanks a lot bhaiya

Ответить
nithu thilakan
nithu thilakan - 31.07.2021 09:53

Shows attribute error when. Try to install pilow

Ответить
SleepyPanda
SleepyPanda - 29.07.2021 17:50

Thanks a lot!! this is the best channel

Ответить
Parth Gupta
Parth Gupta - 11.07.2021 11:11

For anyone getting,
ValueError: invalid literal for int() with base 10: or even this ValueError: Field 'price' expected a number but got ' '.

You just need to open the first file which has been linked in the error, it will be named like __init__.py in the end, open that file there you will find a statement return int(value) just make it return value also it will prompt you just click *you want to edit the file anyways*. Save the changes, and now run migrate command again and hopefully you will not get any error.

Ответить
Sheshanka Shahi
Sheshanka Shahi - 09.07.2021 22:51

Sir i can't login with same userid and password
I'm stuck please help sir

Ответить
Mehreen Malik
Mehreen Malik - 18.06.2021 21:29

Why my str function is not returning any response/changes .I have written same as harry

Ответить
18-1211
18-1211 - 10.06.2021 20:02

After installing pillow also it shows same error what to do

Ответить
popat lal
popat lal - 11.05.2021 18:42

harry in django playlist be like :
for one_second in time:
harry.speak("Share kardo whatsapp group par facebook group par")
'''' Anyways bhai boht accha sikhaya aapne '''

Ответить
TECHINSPEC
TECHINSPEC - 03.05.2021 00:20

Print("This video is helpful")

Ответить
TECHINSPEC
TECHINSPEC - 03.05.2021 00:20

GREAT>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<

Ответить
Vaibhav Rawat
Vaibhav Rawat - 20.03.2021 15:34

copied same code still getting this error
Field 'price' expected a number but got ''

Ответить
Pankaj Sharma
Pankaj Sharma - 09.03.2021 13:34

OperationalError at /admin/shop/product/
no such column: shop_product.category
can you please resolve it

Ответить
soulsrfer
soulsrfer - 06.03.2021 22:37

hey harry bro!
your videos helped me a lot
thanks for that
huge respect 🤙
but i am facing a problem right now.
i’ve created user class in django model
which has fields like username, userlastname and image of user,
i am capturing userimage through webcam and i want to rename it to userfullname before i submit any forms
please help me bro!

Ответить
Jashandeep singh
Jashandeep singh - 25.02.2021 11:10

Love you sir

Ответить
𝐒𝐢𝐦𝐛𝐀
𝐒𝐢𝐦𝐛𝐀 - 17.02.2021 14:31

If any one gets error after migration then delete the respective migration py file and try solution again

Ответить
Manish Katiyar
Manish Katiyar - 22.01.2021 21:29

bhai one video on social network website

Ответить
Mohit Wayde
Mohit Wayde - 22.01.2021 16:53

I'll recommend your channel to every coding enthusiast i know who want to learn coding ...
You worth it harry bhai!!!!

Ответить
Khizar Idrees
Khizar Idrees - 28.12.2020 17:09

It didn't change my product name

Ответить
aman nigam
aman nigam - 23.12.2020 10:20

harry bhai
error:
shop.product.image: cannot use imagefield becausa pillow is not installed

Ответить
padhai par charcha
padhai par charcha - 04.12.2020 12:09

sir product name change nho ho rha

Ответить
Shivanshu Tyagi
Shivanshu Tyagi - 28.11.2020 03:08

Harry bhai 👋👋

Ответить
Abdul Rehman
Abdul Rehman - 18.11.2020 17:19

Hy Harry Bhai,
jo apna slider banyea h wo uska jo arrow hn wo sahi sa work nh kar raha navigation bar ko b disturb kar raha hn

Ответить
SAHIL GANDHI
SAHIL GANDHI - 05.11.2020 18:23

Thank u so much ❤️

Ответить
Rakshit
Rakshit - 31.10.2020 20:31

It’s saying pillow not installed while making migrations and when I’m downloading pillow it is showing some error....pls help

Ответить
SARANG S. JOSHI
SARANG S. JOSHI - 16.10.2020 10:33

I watched your Python 15 hours course and now I am watching Django series
I noticed from starting to now your behavior not changed at all.Such a Down To Earth Man You Are!!
Very Very Congrats For 7 LAKH SUBSCRIBER
Love You Bro!!

Ответить
Sangam Singh
Sangam Singh - 16.10.2020 07:50

you are doing great job my dear brother

Ответить
Sangam Singh
Sangam Singh - 16.10.2020 07:49

bhai social nwteorking ka bhi video lagaooo

Ответить
Vaibhav Sawant
Vaibhav Sawant - 12.10.2020 14:01

Share kar diya hai bhai

Ответить
Gautam sharma
Gautam sharma - 10.10.2020 08:42

How to upload multiple images in database can anyone answer me?plzz

Ответить
G- Techsol
G- Techsol - 02.10.2020 09:43

I'm loving it :)

Ответить
Blank Space
Blank Space - 18.09.2020 10:30

ValueError: invalid literal for int() with base 10: ''
This is one error u might get here.U won't get its soln in comments because its quite deep
so search it in utube for it's soln as one col. is not found :)
It's my 1st bug in this I have fixed by myself...:)

Ответить
Aryan Arpan
Aryan Arpan - 16.09.2020 13:10

Sir server ko stop karne ka shortcut batao please..??

Ответить
Ayman Din
Ayman Din - 12.09.2020 12:56

Listen!!! i am trying to add image path( is in my downloads ) in code but i got error... can u explain me how i can write path. Thanks!

Ответить
walter bhai
walter bhai - 17.08.2020 12:39

those who havant installed pillow just install it & your makemigration command will work fine

Ответить
Sujeet
Sujeet - 10.08.2020 18:10

I get error

Ответить
Indranil Swarnakar
Indranil Swarnakar - 07.08.2020 10:11

apke django series pura learn kar raha hu,,,nd main full extra ordenry biggner hu harry vay,,,,andt now this time is vedio pe terminal pillow install karne ke liye bol raha he,,,,kya karu plz sujjest me.

Ответить
PRANAVKUMAR KHANAPARA
PRANAVKUMAR KHANAPARA - 01.08.2020 13:53

please ,please,please
make social networking website

Ответить
Ashish Gupta
Ashish Gupta - 26.07.2020 13:46

Kya tum logo ko bhi django ne pillow install karne bola? 😅
Mujhe to bola tab hi migrate hua

Ответить
black king rg
black king rg - 20.07.2020 17:50

admin k sath chhedkhaani karunga 😂😂😂😂😂😂

Ответить