How To Generate CSV Spreadsheet Files Dynamically With Django - Django Wednesdays #16

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 61

  • @Codemycom
    @Codemycom  3 роки тому

    ▶️ Watch Entire Django Wednesdays Playlist ✅ Subscribe To My UA-cam Channel:
    bit.ly/35Xo9jD bit.ly/2IGzvOR
    ▶️ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
    Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
    ▶️ Get The Code
    bit.ly/3sJpeV6

  • @MrJBCDS
    @MrJBCDS 4 місяці тому

    Greetings from Honduras, Jhon, you rock!

  • @PrinceSingh-ox3rx
    @PrinceSingh-ox3rx Рік тому

    Hello John
    I hope you are doing well
    Thanks for these informatic videos

  • @alexbarasa3816
    @alexbarasa3816 3 роки тому

    Just what I was loking for.👌👌👌👌

  • @akifakif6031
    @akifakif6031 Рік тому

    Hi John. thank you for these awesome resources. I have a imagefield in my model. When I download it as a CSV file, only the path is shown in the spreadsheet cell. How can I download and show the image itself in the spreadsheet?

  • @johngiangrande2996
    @johngiangrande2996 3 роки тому

    Well done John!

  • @carlomieli1985
    @carlomieli1985 3 роки тому

    Thank you as aways! I was wondering could you make a tutorial to explain how to make something like a survey questionnaire about the venue/events? It would also be nice to know how to link the answers to the user who booked the venue/events. Thank you again!

  • @Sublian
    @Sublian 9 місяців тому

    yes its very usefull bro, tks

  • @dilovarxayitova
    @dilovarxayitova Рік тому +1

    Hello. I am from Uzbekistan, I am your fan. I saw your videos. Only in the excel table all my data is coming out in one column. I wrote the code as you wrote. Please tell me my mistake. Thanks beforehand.

  • @annuncivendite2143
    @annuncivendite2143 3 роки тому

    is it possible to restrict the download of cvs file only to the admin and staff? Thank you, your works is terrific!

    • @Codemycom
      @Codemycom  3 роки тому

      Of course, you can lock down anything using authentication

  • @acronproject
    @acronproject Рік тому

    so amazing

  • @FarhanAhmed1360
    @FarhanAhmed1360 3 роки тому

    Owo amazing tutorial. From past few days I am struggling how to merge multiple models in a django forms for update and create in class based views. It will be very helpful if you can make an video on this topics.

    • @Codemycom
      @Codemycom  3 роки тому

      sorry, not doing class based views in this playlist...but I have another playlist that covers class based views

    • @FarhanAhmed1360
      @FarhanAhmed1360 3 роки тому

      @@Codemycom can you give me your classbased django playlist link...I visited your channel but didn't found

    • @Codemycom
      @Codemycom  3 роки тому

      @@FarhanAhmed1360 ua-cam.com/video/B40bteAMM_M/v-deo.html

  • @alivefree
    @alivefree 2 роки тому

    Thanks for the video! Are there any plans on doing a video on how to import data from a .csv file into the database?

    • @Codemycom
      @Codemycom  2 роки тому +1

      No...I have an entire course on python and excel at codemy.com

  • @Ssmm3712
    @Ssmm3712 2 роки тому +1

    Thank you! I want to download docx file of exact venue , but in the docx file it looks very bad like in one row how to do this properly.
    def venue_text(request,venue_id):
    response = HttpResponse(content_type='text/plain')
    response['Content-Disposition'] = 'attachment; filename = venue.docx'
    venues = Venue.objects.get(pk=venue_id)
    venues1 = [venues.name, venues.address, venues.zip_code, venues.phone, venues.web, venues.email_adress]
    lines = ["Name
    ",
    "Address
    ",
    "Zip Code
    ",
    "Phone
    ",
    "Url
    ",
    "Email
    "]
    for venues2 in venues1:
    lines.append(venues2)
    response.writelines(lines)
    return response

  • @ronuelmoralita493
    @ronuelmoralita493 3 роки тому

    Good day Sir, I'm from philippines 🇵🇭 I learned a lot from your video tutorials and because of that I start to build my own portfolio project with django. I know this question is not related with your video content but I want to ask if I could possibly edit my deployed apps like add or change something. Your answer will be appreciated. Thank you 🙂

    • @Codemycom
      @Codemycom  3 роки тому +1

      Sure, you just edit them locally on your computer and push them to webhosting again.

    • @ronuelmoralita493
      @ronuelmoralita493 3 роки тому

      @@Codemycom Thank you Sir 🙂 God bless you always 😇 Stay safe and more power to your youtube channel 💪

    • @Codemycom
      @Codemycom  3 роки тому +1

      @@ronuelmoralita493 Thanks!

  • @emadfarid1748
    @emadfarid1748 2 роки тому

    Thank you Thank you Thank you Thank you

    • @Codemycom
      @Codemycom  2 роки тому

      Welcome Welcome Welcome Welcome :-)

  • @yadneshdalvi2043
    @yadneshdalvi2043 7 місяців тому

    Can we also export it as an Excel?

  • @vikashkumaryadav1657
    @vikashkumaryadav1657 3 роки тому

    🔥🔥🔥 nice sir

  • @dinel9596
    @dinel9596 2 роки тому

    Thanks for the great video, can you show us how to generate csv of the search result?

    • @Codemycom
      @Codemycom  2 роки тому

      It's the same as this video.

  • @essayasnigussie5790
    @essayasnigussie5790 Рік тому

    We have very few options (mostly premium) to implement spreadsheet functionality for django. I wonder why no body is working on that.

  • @wallride2wallride
    @wallride2wallride 2 роки тому

    but how can you do it really dinamically, i mean linked to context i have actually on a webpage and not with a static query?

  • @GormReventlow
    @GormReventlow 3 роки тому

    When exporting datetime fields I get UTC time. How do I get to use the same timezone as the django website (CET)?

  • @umeshpurohit5252
    @umeshpurohit5252 3 роки тому

    Great Sir! Can you make the same for Event or Venue but a pdf

    • @Codemycom
      @Codemycom  3 роки тому

      I'll talk about pdf's in the next video

  • @sandeepsarun7240
    @sandeepsarun7240 3 роки тому

    Hello sir which python libraries are best for android applications

    • @Codemycom
      @Codemycom  3 роки тому

      I couldn't really say, but kivy is popular

  • @genoguibao759
    @genoguibao759 2 роки тому

    I have problem exporting special characters. its not showing same value.

  • @F3ND1MUS
    @F3ND1MUS 3 роки тому

    🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀

  • @briangreenberg153
    @briangreenberg153 3 роки тому

    So, I have a question. My code says: response['Content-Disposition'] = 'attachment; name = venues.csv' When I say to save the file in the dialog box, it saves it without the csv extension. So Excel, for example, does not know it is a csv file. Is there an easy way to save the file with the csv extension? I'm running this on a Mac. Thanks!

    • @Codemycom
      @Codemycom  3 роки тому

      I'm not really sure why it would do that... can you just type in the name with .csv when you save it?

  • @seforaabigail6704
    @seforaabigail6704 2 роки тому

  • @kwonkwon7460
    @kwonkwon7460 3 роки тому

    thank you sir. i have a question. how can i get queryset which is filtered(using user's search conditions) ? i have searched many tutorials but almost tutorials use "XXX.objects.all()". can you teach me how export filtered quryset?

    • @Codemycom
      @Codemycom  3 роки тому

      I have videos on that in the playlist

    • @kwonkwon7460
      @kwonkwon7460 3 роки тому

      @@Codemycom you mean Django Wednesdays playlist? i cant find that.OMG can you tell me which chapter is it?

  • @innocent8484
    @innocent8484 2 роки тому +2

    I am writing same code but data is transferred to a single column in excel. what is the problem ?

    • @Codemycom
      @Codemycom  2 роки тому

      I couldn't guess, having not seen your code. What did you do differently from the video?

    • @goncagulgungor7695
      @goncagulgungor7695 9 місяців тому

      @@Codemycom I have that same problem. I wrote the exact same codes as in the video.

    • @Codemycom
      @Codemycom  9 місяців тому

      @@goncagulgungor7695 100% of the time, when people tell me they wrote the same code....they didn't.

  • @lorimedicenter4439
    @lorimedicenter4439 2 роки тому

    hi🙂😊.....is it working if we use Microsoft office 2016

  • @jaismeenyadav8841
    @jaismeenyadav8841 2 роки тому

    In my excel file only one entry is showing not all

    • @Codemycom
      @Codemycom  2 роки тому

      What did you do differently from the video?

    • @jaismeenyadav8841
      @jaismeenyadav8841 2 роки тому

      Nothing

    • @Codemycom
      @Codemycom  2 роки тому

      @@jaismeenyadav8841 That's not true. If it was, it would work.