Pull Data From The Database - Django Databases #3

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

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

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

    ▶️ Watch Entire Django Database Playlist ✅ Subscribe To My TH-cam 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

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

    Sir , you can't even imagine how much this video helps me . I was just about to give up in django because of these database's stuff .
    Thank you so much ....×100 🤗

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

      Glad I could help

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

    John, you are a godsend. Thank you so much for this series, for someone like me who knows Python but has no experience with databases this is just incredibly helpful. Most tutorials just skim right past the topics you cover here leaving you with the knowledge of “copy this code and paste it into your file.” Thanks again,
    -Dylan

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

      Glad you enjoyed it!

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

    So simple and straight forward. I'm a newbie and 99% of the videos I've gone through confused me a lot. My problem has now been solved ... Lemme also subscribe.

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

      Awesome! Glad they were helpful!

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

    thank you for making this videos, this has really helped me in creating my final year project

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

      Happy to hear it!

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

    Thank you Mr. Elder

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

    Thank you John, you are the best!

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

      Thanks for watching!

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

    Very concise and valuable, thank you!

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

      Glad you enjoyed it!

  • @greetingsgentlemen.8179
    @greetingsgentlemen.8179 4 ปีที่แล้ว

    Thank you so much! This is so amazing. I was about to give up and switch to a different framework. Will be subbing and following channel!

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

      Glad it was helpful!

    • @greetingsgentlemen.8179
      @greetingsgentlemen.8179 4 ปีที่แล้ว

      @@Codemycom Is there a video on having a detailed view? For example, i have a lot of names and i want to open them up using id's. Like this /id

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

    Hi How we can add db_collation="case_insensitive" to username filed and what are the steps?

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

    Amazing videos!!!

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

    thank you codemy uncle

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

    Always following sir🖤

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

      Thanks so much!

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

    Greetings John,
    Can you help us with how to use multiple databases and CRUD with 3-4 different databases even cloud PAAS DBs. It would be helpful.
    Thanks

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

    I need help can we show john data to john only when john signs in and similarly mary data if mary signs so that they wont see other data

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

      Sure, that's pretty normal

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

    Thank you very much!

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

    Hello jhon.is there a way to extract from a table to an other on in the same db for example if i want to to move it from table to on other one base on some conditions

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

      Sure, but too complicated to explain in a comnent

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

      ​@@Codemycom thnks u

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

    Learn smartly, learn from Codemy! :)

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

    Thnk you so much

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

      Glad you liked it!

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

    Thank you sir

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

      You're very welcome!

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

    Nice explanation .I didn't pass object parameter to html file but I know my mistake now

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

      Glad it helped

  • @GuilhermeFerreira-xx4fg
    @GuilhermeFerreira-xx4fg 3 ปีที่แล้ว

    I followed the video and used it in my project, but in the end it did not work.. the screen was all blank.. Do you know what could be the problem?
    ------------------------------------------
    My model:
    from django.db import models
    class Posicao(models.Model):
    nome = models.CharField('Posição', max_length=5)
    descricao = models.TextField('Descrição', max_length=1000)
    secao = models.ForeignKey(Secao, blank=False, null=False, on_delete=models.CASCADE)
    capitulo = models.ForeignKey(Capitulo, blank=False, null=False, on_delete=models.CASCADE)
    def __str__(self):
    return self.nome
    -------------------------------------------
    My view:
    from django.shortcuts import render
    from .models import Posicao
    def consultar_123(request):
    consultar_abc = Posicao.objects.all()
    return render(request, 'consulta_ncm.html', {'all' : consultar_abc})
    -----------------------------------
    My urls:
    from django.urls import path
    from django.views.generic import TemplateView
    urlpatterns = [
    path('consulta_ncm', TemplateView.as_view(template_name='consulta_ncm.html')),
    ------------------------------------
    My html (consulta_ncm.html):
    Hello World
    {{all}}
    -----------------------------------
    The outcome:
    Hello World

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

      You didn't follow the video correctly. Try watching the video again and give it all another try

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

    Hello John, Please how do I add an additional column to an existing database thru models.py? Thank you

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

      I have a django blog playlist on this channel that will show you that. Essentially just add the new thing to your models.py file, then make a migration and push the migration as normal.

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

      @@Codemycom Thanks so much sir.

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

    Can you make a video for model choice values for a drop down list please

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

      Not sure what you mean

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

      @@Codemycom sorry, that was vague. I meant a query set for users to select options but the voices will be coming from the data base. Also Thank you very much for your video- you are the best my guy. New York loves you Brother

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

    50 Likes and no dislike that's awesome

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

      agreed :-)

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

    I want to pull the records of database and store it in an Excel sheet...is this possible sir??

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

    the data is not printed on the page

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

      What did you do differently from the video?

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

    John, you are a godsend. Thank you so much for this series, for someone like me who knows Python but has no experience with databases this is just incredibly helpful. Most tutorials just skim right past the topics you cover here leaving you with the knowledge of “copy this code and paste it into your file.” Thanks again,
    -Dylan

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

      Glad you enjoyed it!