Building a Django Batch Script to Load Data from CSV

แชร์
ฝัง

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

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

    I have been looking for this for weeks! Thank you!

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

    This is great! Thank you saved me tons of research!

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

    You are the best!!

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

    "The world is full of vertical replications.. Good data models are not!" 😂😂😂 fancy!

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

    thank you.

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

    Have a question, you just put load.csv inside the app many?

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

    Thanks

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

    You're awesome, just like 7:29 pew pew ;)

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

    Really helpful video!
    One question, how could I implement this script to create multiple users for my django project.
    In all my rows, a person is assigned a user.
    I want two separate tables:
    A User
    A Person
    Many Persons can have one relation to this one user.
    As a user, I want their email/username to be unique, how would I use this if all my rows have multiple instances of the same user. I cannot create a table through iteration, as I am adding the same User info multiple times -- leading to a not unique error

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

      Crisis averted. Made use of a try/except and check if there is a User by using the Model.objects.get() method.
      Thanks again for your helpful video, you rock!

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

    Best way to import csv file in django