Django Models.py - Django Databases #2

Sdílet
Vložit
  • čas přidán 9. 09. 2024

Komentáře • 73

  • @Codemycom
    @Codemycom  Před 4 lety +2

    ▶️ Watch Entire Django Database Playlist ✅ Subscribe To My CZcams Channel:
    bit.ly/2uiNq86 bit.ly/2IGzvOR
    ▶️ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶️ Learn to Code at Codemy.com
    Take $30 off with coupon code: youtube1

  • @thomaspaine6082
    @thomaspaine6082 Před 4 lety +1

    You are the smartest Django teacher , thank you very much!
    Edit: i am learning a lot i am very grateful :)

    • @Codemycom
      @Codemycom  Před 3 lety +1

      Thank you! 😃

    • @thomaspaine6082
      @thomaspaine6082 Před 3 lety

      @@Codemycom i am learning a lot! Thank you i love your teaching style

    • @Codemycom
      @Codemycom  Před 3 lety

      @@thomaspaine6082 Glad to hear it!

  • @yeerojcodes3020
    @yeerojcodes3020 Před 4 lety +1

    i like the way u start these awesome videos ...so much full of energy

  • @vinu1497
    @vinu1497 Před 2 lety

    Sir you are Incredible..!!!
    U made it look like It was like teaching a person to eat ice cream...!!!
    hahaha what an awesome trainer fantastic
    🙂

  • @franciscoayracaceres7163
    @franciscoayracaceres7163 Před 6 měsíci

    amazing, just super good tutorial

  • @anselsolomon6270
    @anselsolomon6270 Před 4 lety

    I like this, u kept it very clear and simple..Thanks

  • @rangabharath4253
    @rangabharath4253 Před 4 lety +2

    Thank you so much 😁👍

  • @brucebarrett1273
    @brucebarrett1273 Před 4 lety +1

    To avoid the "Sublime" problem of italic, lower-case el looking upper-case change the font in preferences.
    For example "Letter Gothic Std" works nicely.

  • @spiralgaming8940
    @spiralgaming8940 Před 3 lety

    Thank you sir for such a exciting and informative content

  • @juanmitilo2668
    @juanmitilo2668 Před 2 lety

    Excellent video my friend. Thank you so much. Very helpful.

  • @mdbarin2014
    @mdbarin2014 Před rokem

    great thanks a lot
    🙏🙏🙏

  • @annisfun1993
    @annisfun1993 Před 2 lety

    that was great pls keep the good tutorials

  • @sidaliaityahiatene3988

    Thank you man, you are amazing

  • @ruhiziki6361
    @ruhiziki6361 Před 3 lety

    Thanks sir for the awesome videos!

  • @samuvijayakumar6991
    @samuvijayakumar6991 Před 3 měsíci

    👌

  • @TechWithSabri
    @TechWithSabri Před 4 lety

    i think this is what we are talking about it sir yes?
    witch admin can add some staffs in his website and user can like or do staffs also
    i think this is the main of this tutorial ?
    this what we need
    any wway thnx so much for your time

    • @Codemycom
      @Codemycom  Před 4 lety

      Adding things to the admin area is one thing...having those changes reflect onto the website is a whole other complicated thing...

    • @TechWithSabri
      @TechWithSabri Před 4 lety

      @@Codemycom
      look sir i will give you an example
      a client he is a bodybuilding want to create his own website.(videos website)
      after you create the website and you add the videos he gave it to you, he want also after weeks to add some videos or pictures without contacting you . . . .
      whats the steps in this case
      if you can make some videos about this prblm i will be very happy and appreciate that.
      thnks a lot for your time.

  • @tripathi5174
    @tripathi5174 Před 4 lety +1

    Sir what if we have a admin and I want to delete that admin and create a new superuser, will all the data of my project or website will be lost or the actions performed by the previous admin will be lost?
    or there will be no change at all if i create a new super user with different name and password please help i am not able to access my previous admin and i am getting an error called as
    User.profile.RelatedObjectDoesNotExist: User has no profile.
    Please help

    • @Codemycom
      @Codemycom  Před 4 lety +1

      Good question. Your data won't be lost. The data is in the database, it's not tied to the superuser. Just create a new superuser and you'll be fine.

    • @tripathi5174
      @tripathi5174 Před 4 lety

      @@Codemycom thankyou so much sir

    • @Codemycom
      @Codemycom  Před 4 lety +1

      @@tripathi5174 Sure thing!

  • @yaboobayyaboobay8191
    @yaboobayyaboobay8191 Před 3 měsíci

    The model is not showing in the admin page for me

    • @Codemycom
      @Codemycom  Před 3 měsíci

      what did you do differently from the video?

  • @JJ-ot3ps
    @JJ-ot3ps Před 2 lety

    hi there, what is models.Model? I guess the first models is from django class, and what is the second Model mean?

  • @udhayhakarthik6792
    @udhayhakarthik6792 Před 2 lety

    Where does this database reside? Was it SQL or something else?

    • @Codemycom
      @Codemycom  Před 2 lety

      it's the default database that comes with django

  • @davecox3013
    @davecox3013 Před 4 lety

    I notice at 18:40 you hit save in the script and reload on the website, the change is immediate. Did you migrate again to do this because I've saved my work but still have members object there.
    Cheers mate!

    • @Codemycom
      @Codemycom  Před 4 lety

      No, I didn't migrate.

    • @davecox3013
      @davecox3013 Před 4 lety

      Ok sorry

    • @Codemycom
      @Codemycom  Před 4 lety

      @@davecox3013 nothing to be sorry about

    • @ideal7761
      @ideal7761 Před 3 lety

      @@Codemycom Thanks for the great tutorials; how do I go past what @Dav Cox has mentioned here? I have hit the same snag, added:
      def __str__(self):
      return self.fname + ' ' + self.lname
      to models.py, saved but Members object (n) still appears instead of member names.

    • @ideal7761
      @ideal7761 Před 3 lety

      Got it.
      Indentation was not right; it should be aligned this way:
      class Members(models.Model):
      fname = models.CharField(max_length=50)
      lname = models.CharField(max_length=100)
      email = models.EmailField(max_length=200)
      passwd = models.CharField(max_length=50)
      age = models.IntegerField()
      def __str__(self):
      return self.fname + ' ' + self.lname

  • @toshiharu7630
    @toshiharu7630 Před 10 měsíci

    walter white in the world of programming
    xd

  • @ecodersofficial
    @ecodersofficial Před 2 lety

    You're in the 3rd generation of sublime text. Upgrade to its 4th generation!

  • @shoxruxsunnatov
    @shoxruxsunnatov Před 3 lety

    Hi, how many years of experience do you have?

    • @Codemycom
      @Codemycom  Před 3 lety

      I've been coding for 35 years

  • @Kevin-hl8iw
    @Kevin-hl8iw Před rokem

    Thank you Walter White

  • @bhushanwagh7192
    @bhushanwagh7192 Před 4 lety

    Can you make a video...
    How to integrate machine learning with tkinter
    Or have a any idea about this please let me know.. Please

    • @Codemycom
      @Codemycom  Před 4 lety

      Maybe...but if you know machine learning...and you know tkinter...there's not much else to learn ;-) I have a matplotlib tikinter video in the playlist I think...

    • @bhushanwagh7192
      @bhushanwagh7192 Před 4 lety

      @@Codemycom thank you so much...
      👍😊

    • @Codemycom
      @Codemycom  Před 4 lety +1

      @@bhushanwagh7192 Sure thing!

  • @SA-es5gs
    @SA-es5gs Před 3 lety

    does Django is secure?

  • @ajaydubey304
    @ajaydubey304 Před 2 lety

    if you stuck with table error like i did use this command in new django update
    python manage.py migrate --run-syncdb

  • @ahmetburakkarhan130
    @ahmetburakkarhan130 Před 3 lety

    you look like walter white

  • @finitoSA
    @finitoSA Před 11 měsíci

    Please, don't concatenate! I'm scared...
    It's easier and prettier to use fstrings - like this:
    variable = 'fcking'
    return f'This is {variable} awesome'

  • @justgames123
    @justgames123 Před 4 lety

    Glad to see you have moved on from selling meth Walter White

  • @ecodersofficial
    @ecodersofficial Před 2 lety

    You're in the 3rd generation of sublime text. Upgrade to its 4th generation!