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

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024
  • ►Source Code + Resources - www.codewithhar...
    ►Full Django Course Playlist - • Python Django Tutorial...
    ►Click here to subscribe - / @codewithharry
    Best Hindi Videos For Learning Programming:
    ►Learn Python In One Video - • Learn Python In Hindi ...
    ►Learn JavaScript in One Video - • JavaScript Tutorial
    ►Learn PHP In One Video - • Learn Php In One Video...
    ►Machine Learning Using Python - • Machine Learning Tutor...
    ►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
    ►Advanced Python Tutorials - • Intermediate/Advanced ...
    ►Object Oriented Programming In Python - • Object Oriented Progra...
    ►Python Data Science and Big Data Tutorials - • Python Data Science an...
    Follow Me On Social Media
    ►Website (created using Flask) - www.codewithha...
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    ►Personal Facebook A/c - / geekyharis
    Twitter - / haris_is_here

ความคิดเห็น • 215

  • @SARANGSJOSHI
    @SARANGSJOSHI 3 ปีที่แล้ว +15

    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!!

    • @sleepypanda7172
      @sleepypanda7172 3 ปีที่แล้ว

      after you said this, I also observed the same!! Now he is at 1.64 M and still with same energy and humble attitude ~(˘▾˘~)

    • @Jose-qk3di
      @Jose-qk3di 2 ปีที่แล้ว +1

      lmao it's 1.94m

    • @saranghae3720
      @saranghae3720 2 ปีที่แล้ว

      @@Jose-qk3di now 2.36m 😎

    • @Vishalkumar85124
      @Vishalkumar85124 2 ปีที่แล้ว

      @@saranghae3720 it's 3.18M now

    • @arjunpoduval5810
      @arjunpoduval5810 ปีที่แล้ว

      @@Vishalkumar85124 damn its 3.64 M now

  • @walterbhai3959
    @walterbhai3959 4 ปีที่แล้ว +13

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

  • @mohitwayde249
    @mohitwayde249 3 ปีที่แล้ว +4

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

  • @urveshpatel5605
    @urveshpatel5605 4 ปีที่แล้ว +1

    Harry bhai acche video bana rhe ho aaap . Me aapka video dekhke Django sikha huuun .Thank you.

  • @parthgupta4850
    @parthgupta4850 3 ปีที่แล้ว +5

    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.

  • @gernalknowledge9748
    @gernalknowledge9748 หลายเดือนก่อน

    Excellent Work love from Pakistan. Your teaching skills are extraordinary. ❤

  • @kamar1380
    @kamar1380 5 ปีที่แล้ว +3

    Hey Bro i like👍 your videos, I'm facing problem, how to upload multiple images in django admin panel..

  • @mohdumar1775
    @mohdumar1775 5 ปีที่แล้ว +2

    Ye to bahut aasan tha bhai aur maza aa rha h

  • @coolmantej50
    @coolmantej50 5 ปีที่แล้ว +2

    Explained it like it was too easy

  • @coderzadda
    @coderzadda 2 ปีที่แล้ว +1

    Harry sir waiting for Social Networking app

  • @chrisdepp
    @chrisdepp 8 หลายเดือนก่อน

    thanku so much harish bai..

  • @kiranbulbule
    @kiranbulbule 4 ปีที่แล้ว

    Harry bhai kya series banaiye yaar. Maza aa gaya.

  • @hussamcheema
    @hussamcheema 4 ปีที่แล้ว +1

    In which video you discussed "ManyToMany" relationship?

  • @shyamkachhadiya4964
    @shyamkachhadiya4964 5 ปีที่แล้ว +1

    very very nice explained bro.......#You_Rocks

  • @rajmani4486
    @rajmani4486 4 ปีที่แล้ว

    sir you are the one of the best teacher..

  • @SameerMalik-hk8lf
    @SameerMalik-hk8lf 4 ปีที่แล้ว

    Harry bhai! your explanation is awesome!

  • @sleepypanda7172
    @sleepypanda7172 3 ปีที่แล้ว

    Thanks a lot!! this is the best channel

  • @SRAsurface
    @SRAsurface 4 ปีที่แล้ว

    You are best Harry Bhai.... thanks

  • @soulsrfer5295
    @soulsrfer5295 3 ปีที่แล้ว +1

    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!

  • @kajalroy8768
    @kajalroy8768 5 ปีที่แล้ว

    #good morning
    The greatest python course in Hindi on #TH-cam #No:-1 love you #brother.

  • @sangamsingh8245
    @sangamsingh8245 3 ปีที่แล้ว

    you are doing great job my dear brother

  • @aryanarpan4282
    @aryanarpan4282 4 ปีที่แล้ว +1

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

  • @shankargope9611
    @shankargope9611 5 ปีที่แล้ว +1

    Thank you👍

  • @rishabhdubey8687
    @rishabhdubey8687 5 ปีที่แล้ว

    you teaching style is awesome bro ,i share

  • @YourWellWIsher1982
    @YourWellWIsher1982 4 ปีที่แล้ว

    I'm loving it :)

  • @amannigam8408
    @amannigam8408 3 ปีที่แล้ว +1

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

    • @amiteshsingh94
      @amiteshsingh94 3 ปีที่แล้ว

      Error fix ho gya ho to bta dena kaise fix hua hai, same error mera v hai

    • @amannigam8408
      @amannigam8408 3 ปีที่แล้ว +1

      @@amiteshsingh94 cmd me jakar pillow install krlo bus......

  • @samuelfrank9947
    @samuelfrank9947 3 ปีที่แล้ว

    Thanks a lot bhaiya

  • @mailtodanish
    @mailtodanish 4 ปีที่แล้ว

    you have very good memory..number of technology so deeply :)

  • @IjazAhmad-wv9qx
    @IjazAhmad-wv9qx ปีที่แล้ว

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

  • @nrini16
    @nrini16 4 ปีที่แล้ว +1

    Getting error for image....Pillow is not installed

    • @deepchirag4604
      @deepchirag4604 4 ปีที่แล้ว

      python -m pip install Pillow
      run it

  • @prakulmehra6561
    @prakulmehra6561 5 ปีที่แล้ว +1

    Bro i have an issue. When I click on products in admin panel then it just shown an operational error regarding an coloumn something. And when i click on add products then it simply opens the page where we need to insert various details of product. But when i click save and add another. Then it just shows error regarding the class i defined in models. Models.product_id error

    • @manishchoudhary9150
      @manishchoudhary9150 4 ปีที่แล้ว +1

      Hey Mehra, Try the command
      python manage.py migrate --run-syncdb
      Syncdb will create table for apps without migrations and Just incase it fails, create a folder named migrate inside the apps directory and add an empty file __init__.py inside it then try the command again

  • @TECHINSPEC
    @TECHINSPEC 3 ปีที่แล้ว

    GREAT>>>>>>>>>>>>>>>>>>>>>>>>

  • @aashischoudhary1058
    @aashischoudhary1058 5 ปีที่แล้ว

    Harry bhai....
    keep it up..

  • @sunnysingh7918
    @sunnysingh7918 ปีที่แล้ว

    love you brother

  • @prabinjoshi9908
    @prabinjoshi9908 2 ปีที่แล้ว

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

  • @vaibhavrawat8419
    @vaibhavrawat8419 3 ปีที่แล้ว +1

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

  • @radeonblue1816
    @radeonblue1816 2 ปีที่แล้ว

    Thanks haris bhai. Mujhe bhi Dil chahiye.

  • @sangamsingh8245
    @sangamsingh8245 3 ปีที่แล้ว +1

    bhai social nwteorking ka bhi video lagaooo

  • @vishavjeetsingh8165
    @vishavjeetsingh8165 4 ปีที่แล้ว

    Nive tutorial, thanks Harry

  • @JobsAddaa
    @JobsAddaa 5 ปีที่แล้ว

    Sir, please make a video on social network

  • @SirAnonymous-u7c
    @SirAnonymous-u7c 10 หลายเดือนก่อน

    thanks

  • @amitgupta-or5nm
    @amitgupta-or5nm 5 ปีที่แล้ว +1

    Getting error 'value error invalid int() with base 10'

  • @yogeshmittal2079
    @yogeshmittal2079 5 ปีที่แล้ว

    Awesome bro..

  • @habibulislam1269
    @habibulislam1269 5 ปีที่แล้ว

    Hello sir .
    Why we should learn python programming?
    Is python programming need for making games?

    • @rahulshukla5033
      @rahulshukla5033 5 ปีที่แล้ว

      For datascience/ML/AI/web development yes also for games and many more

  • @ghanimehtab1
    @ghanimehtab1 4 ปีที่แล้ว

    Bro.... Thanks a lot......

  • @abhisheksahore7883
    @abhisheksahore7883 4 ปีที่แล้ว +2

    koi SOLUTION bta do
    PROBLEM:
    bhai maine is code mai phle baar -------- price = models.IntegerField(default = "") --------- likh kr makemigrations aur migrate kia tb error aya --------- ValueError: Field 'price' expected a number but got ''.
    uske baad maine --------price = models.IntegerField(default = 0) --------likh kr fir se makemigrations aur migrate kia tab bhi mujha same error show kr raha hai
    aur jab maine price wali field hi hta di tab bhi same error show kr raha hai........
    plzz solution btao Harry bhai..
    CODE
    from django.db import models
    # Create your models here.
    class Product(models.Model):
    product_id = models.AutoField
    product_name = models.CharField(max_length = 120)
    product_description = models.TextField()
    publication_date = models.DateField()
    catagory = models.CharField(max_length = 120, default = "")
    subcatagory = models.CharField(max_length = 120, default = "")
    price = models.IntegerField(default = 0)
    product_image = models.ImageField(upload_to = "shop/images", default = "")
    def __str__(self):
    return self.product_name

    • @webseriesworld1791
      @webseriesworld1791 4 ปีที่แล้ว +1

      same problem bro

    • @webseriesworld1791
      @webseriesworld1791 4 ปีที่แล้ว +2

      bro i face it as i mentioned earlier bt now I solve it go to migration file where it is written price default=' ' change to default=0 then run it again do migrate again it will run

    • @punit_v07
      @punit_v07 ปีที่แล้ว

      @@webseriesworld1791 Actually , This method worked, Thank You!.

    • @raavananrocks4237
      @raavananrocks4237 11 หลายเดือนก่อน

      ​@@webseriesworld1791thank you brother i was search for this solution for sometime ❤

  • @aymandin4912
    @aymandin4912 4 ปีที่แล้ว +1

    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!

    • @aymandin4912
      @aymandin4912 3 ปีที่แล้ว

      @@Aykan303 thanks! I'll try that

  • @saiyamjain3497
    @saiyamjain3497 4 ปีที่แล้ว +1

    I installed pillow ...but when I run makemigrations it again give error ...(install pillow)....I dont know why please help me

    • @nabilanaureen8573
      @nabilanaureen8573 4 ปีที่แล้ว +1

      Same problem..
      Did you solve it? If yes, then please tell me, how I can solve it...
      Please help

    • @nrini16
      @nrini16 4 ปีที่แล้ว

      Please help

    • @FoodFiesta4
      @FoodFiesta4 4 ปีที่แล้ว

      when this error is occur . terminal show command for install pillow. like "python -m install pillow"

  • @Gandhiboy
    @Gandhiboy 3 ปีที่แล้ว

    Thank u so much ❤️

  • @manishkatiyar2403
    @manishkatiyar2403 3 ปีที่แล้ว

    bhai one video on social network website

  • @ayushyadav333
    @ayushyadav333 2 ปีที่แล้ว

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

  • @mdnajrealam7057
    @mdnajrealam7057 5 ปีที่แล้ว

    Shukriya

  • @sujeet4295
    @sujeet4295 4 ปีที่แล้ว +1

    I get error

  • @shanmukhavarma3361
    @shanmukhavarma3361 5 ปีที่แล้ว

    you makeing django much simpler

  • @melvyndsouza820
    @melvyndsouza820 2 ปีที่แล้ว

    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

  • @mohammadhashim9963
    @mohammadhashim9963 5 ปีที่แล้ว

    outstanding vedio

  • @sachincse3157
    @sachincse3157 5 ปีที่แล้ว

    sir how can i add multiple images to product model instead of only one image......

  • @blankspace5589
    @blankspace5589 4 ปีที่แล้ว

    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...:)

  • @rahulshukla5033
    @rahulshukla5033 5 ปีที่แล้ว

    awesome...............

  • @mehreenmalik9259
    @mehreenmalik9259 3 ปีที่แล้ว

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

  • @arvindsinghal169
    @arvindsinghal169 5 ปีที่แล้ว

    Sir its very difficult to make changes in sqlite3 database as i am unable to get proper documentation for it .i have searched google for droping a table and its showing unnnecsary results plz help me out of this

  • @ashutoshraval3255
    @ashutoshraval3255 4 ปีที่แล้ว

    Thanks to help 😊 . 🍰

  • @shilpajassal4703
    @shilpajassal4703 4 ปีที่แล้ว +1

    altough, i installed pillow,there is an error no attribute ImageField plz give suggestions

    • @manjeetsingh6028
      @manjeetsingh6028 4 ปีที่แล้ว

      bro try installing it with the help of command:- python -m pip install pillow
      then it will install correctly and will also function properly.

    • @aqibkhan8706
      @aqibkhan8706 4 ปีที่แล้ว +1

      @@manjeetsingh6028 yes this command is work

    • @ankitkumarchaudhary7108
      @ankitkumarchaudhary7108 4 ปีที่แล้ว

      @@manjeetsingh6028 errorr C:\Users\Ankit\AppData\Local\Temp\pip-instal
      l-ibbtfofk\pillow\

    • @kanchanjeswani5826
      @kanchanjeswani5826 3 ปีที่แล้ว

      @@manjeetsingh6028Thank you!

  • @rahulsrivastava7017
    @rahulsrivastava7017 5 ปีที่แล้ว +1

    on running python manage.py migrate , i get error-
    ValueError: invalid literal for int() with base 10: ''

    • @CodeSadhu
      @CodeSadhu 5 ปีที่แล้ว

      I'm also getting the same error. Please tell me how you solved it.

    • @rahberabbasabidi4514
      @rahberabbasabidi4514 4 ปีที่แล้ว

      @@CodeSadhu bro type python3 manage.py runserver

    • @AkashKumar-ix3mr
      @AkashKumar-ix3mr 4 ปีที่แล้ว

      Same prob bro... Tell me how u fix it

  • @indranilswarnakar2723
    @indranilswarnakar2723 4 ปีที่แล้ว

    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.

  • @sahilbisht3661
    @sahilbisht3661 4 ปีที่แล้ว

    And vo self Mai kya ayega self . Product name ki jagah

  • @codewithharryfanchannel559
    @codewithharryfanchannel559 5 ปีที่แล้ว

    Very good

  • @jashandeepsingh272
    @jashandeepsingh272 3 ปีที่แล้ว

    Love you sir

  • @wajahatali226
    @wajahatali226 4 ปีที่แล้ว

    Awesome

  • @suwaliarora6242
    @suwaliarora6242 4 ปีที่แล้ว

    Please make a video to send email verification mail when a user enters the email id in the sign-up form.

  • @kanuwebmedia8250
    @kanuwebmedia8250 5 ปีที่แล้ว

    Very nice boss

  • @developerrishabh9311
    @developerrishabh9311 5 ปีที่แล้ว +1

    [invalid literal for int() with base 10: '' "] ye error aa rha h jab bhi migrate kr rha hu please help me to fix the error please.............................

    • @rohitjain028
      @rohitjain028 5 ปีที่แล้ว

      Talk with Rishabh same here

    • @developerrishabh9311
      @developerrishabh9311 5 ปีที่แล้ว +1

      @@rohitjain028 mene error follow kiya jisme mene site packege me jakr file edit ki jab error ata hai to line no. aata h or directory b ati h mene usi directry ko jakr follow kiya ...and now i fixed this error

    • @architgoel17
      @architgoel17 5 ปีที่แล้ว

      @@developerrishabh9311 Same here, How do you fix this error ?

    • @kumarashutosh6402
      @kumarashutosh6402 5 ปีที่แล้ว

      @@developerrishabh9311 how you fixed this error,please help us

    • @rahulsrivastava7017
      @rahulsrivastava7017 5 ปีที่แล้ว

      @@developerrishabh9311 can u tell me how u fixed it , in detail ?

  • @AbdulRehman-sy8co
    @AbdulRehman-sy8co 3 ปีที่แล้ว

    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

    • @jasroopsinghreel
      @jasroopsinghreel 3 ปีที่แล้ว +1

      Bhai ek baar firse pura code likhke try Karo..kuch na kuch error hoga.. indentation sahi se Dena code meii..meii aj hi Kiya hu..sahi work karra h.. starting meii problems aari thii..Parr I realized ki mere code meii hi error thee

    • @AbdulRehman-sy8co
      @AbdulRehman-sy8co 3 ปีที่แล้ว

      @@jasroopsinghreel ok bro

  • @shivanshutyagi83
    @shivanshutyagi83 3 ปีที่แล้ว

    Harry bhai 👋👋

  • @wajahatali226
    @wajahatali226 4 ปีที่แล้ว +1

    Social networking website please sir

  • @vaibhavsawant6640
    @vaibhavsawant6640 3 ปีที่แล้ว

    Share kar diya hai bhai

  • @sarweshwarprasad007
    @sarweshwarprasad007 12 วันที่ผ่านมา

    Function not implemented aa rha h error 38

  • @gururaj2199
    @gururaj2199 4 ปีที่แล้ว

    Is there a way by which we can add videos to our website, if yes please teach us. If anyone knows how it's done then please teach me by commenting. Or suggest any framework by which I can do it(Add videos)

  • @shrenda
    @shrenda 2 ปีที่แล้ว

    how to make image optional?

  • @johnright5877
    @johnright5877 4 ปีที่แล้ว

    Nice video

  • @Raj_Patel21
    @Raj_Patel21 5 ปีที่แล้ว

    Bhai image wala record admin mai se delete hone par image delete nahi ho rahi hai shop/images directory mai se

  • @user-rb8ew3nw9y
    @user-rb8ew3nw9y 3 ปีที่แล้ว

    After installing pillow also it shows same error what to do

  • @agranshuaggarwal3947
    @agranshuaggarwal3947 4 ปีที่แล้ว

    awsome

  • @deepakchaudhary7528
    @deepakchaudhary7528 5 ปีที่แล้ว

    nice sir

  • @sheshankashahi2111
    @sheshankashahi2111 3 ปีที่แล้ว

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

  • @pranavkumarkhanapara9273
    @pranavkumarkhanapara9273 4 ปีที่แล้ว

    please ,please,please
    make social networking website

  • @noobiegamer97
    @noobiegamer97 4 ปีที่แล้ว +1

    Yaar Bhai invalid literals for int base 10 wali error aa rahi he kya karu?while migrating

    • @webseriesworld1791
      @webseriesworld1791 4 ปีที่แล้ว

      same here bro

    • @noobiegamer97
      @noobiegamer97 4 ปีที่แล้ว

      @@webseriesworld1791 I resolved it by creating new project

  • @lajawabraza8218
    @lajawabraza8218 5 ปีที่แล้ว

    how to insert image in database using django bro plzzz tell me

  • @nithuthilakan3943
    @nithuthilakan3943 3 ปีที่แล้ว

    Shows attribute error when. Try to install pilow

  • @TaknikiSohil
    @TaknikiSohil 5 ปีที่แล้ว

    Bro django administration mein SHOP , product yesa kuch nahi dikhra

  • @aniketpaturkar9913
    @aniketpaturkar9913 5 ปีที่แล้ว

    how to delete data from product table?

  • @shubhamsood589
    @shubhamsood589 5 ปีที่แล้ว

    Done harry bhai

  • @sahilbisht3661
    @sahilbisht3661 4 ปีที่แล้ว

    Sir bina object banaye vo self.product name call kse hua please tell

  • @Raj_Patel21
    @Raj_Patel21 5 ปีที่แล้ว

    Nice

  • @abhijeet5643
    @abhijeet5643 2 ปีที่แล้ว

    how to login in django admin????

  • @PankajSharma-gg1ul
    @PankajSharma-gg1ul 3 ปีที่แล้ว

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

    • @sharmilapvls3253
      @sharmilapvls3253 2 ปีที่แล้ว

      bhai i got the same problem ...can you please resolve it

  • @KnowledgeTube662
    @KnowledgeTube662 4 ปีที่แล้ว

    bhai, how can i delete my previous table because in that table arise some operational error like 'no such column'. i have deleted my ooo1_initial.py and recreate class in models.py . but problem solve ni ho rhi h.. please kuch reply do

    • @manishchoudhary9150
      @manishchoudhary9150 4 ปีที่แล้ว

      Hey bro, try with this command.
      python manage.py migrate --run-syncdb
      Syncdb will create table for apps without migrations and Just incase it fails, create a folder named migrate inside the apps directory and add an empty file __init__.py inside it then try the command again

  • @bhargavchoithwani3961
    @bhargavchoithwani3961 2 ปีที่แล้ว

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

  • @musmansaleem2069
    @musmansaleem2069 4 ปีที่แล้ว

    harry bhai ap django administration pannel m products kha sy agy hay jb k mery pass show niii ho rha or m to ap ki videos k sath sath chal rha
    i am late but trying alhumdillilah!

    • @Grawish
      @Grawish 4 ปีที่แล้ว

      videos dobara dekho bhai!!

  • @TECHINSPEC
    @TECHINSPEC 3 ปีที่แล้ว

    Print("This video is helpful")