How To Generate Text Files Dynamically With Django - Django Wednesdays #15

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

КОМЕНТАРІ • 70

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

    ▶️ 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

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

      Hi! Nice video. You know, I would like to do exactly the opposite. Read texts from a text file (for example a list of questions and answers) into django database. How would you do that? I can read from a CSV file, and that is easy. How would you go about is ok, but can you explain how to do it from a raw text file or even MS Word .

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

    Thank you for the clear and easy instructions!

  • @963seeker
    @963seeker Рік тому +1

    Love the simplicity, something very hard in technical fields

  • @kyawmying224
    @kyawmying224 11 місяців тому

    John Elder is awesome.

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

    Thanks for the lesson. my project involves creating documents to be downloaded. perfect lesson at the perfect time. :)

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

    Thanks for this .. this helped me to create vcf files with customer details on the fly... Thanks a tonnnn

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

    Thanks for this video. It has been very helpful. I slightly adapted if for my case where I need to save a single post in my app to a text file.

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

    Great tutorial! Thanks mate

  • @Raja-ie7nq
    @Raja-ie7nq 3 роки тому +1

    Nice work.....will you post a video for viewing events in calendar with some calendar style stuff...and also notice board like upcoming events

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

    Great Sir! A new concept. Thanks!

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

    Thank you! You helped me a lot!

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

    You earned a new subscriber.

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

    Thanks for this! That was exactly what i needed.

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

    You are a genius!
    Just Amazing👍👍

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

      Ha, glad you liked it

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

    Great Great Great work!!!

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

    Hello! Do you know how to generate a txt file but have it attached to the model as a field?

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

      I don't have any videos on that

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

    could you make a video for generating .doc or .docx files as well or can this method work as well

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

    Well explained. Thanks a ton. 👍

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

    Sir I used Ajax in django form.is_valid() method returns false without Ajax it validate the form

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

      I don't have any videos on Ajax.

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

    I want to clarify one point.
    To display the text correctly in Notepad (Windows), you need to set `
    `.

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

    when I click the Venue Text File button I am not getting all those options to either just see it or save it, it is just simply downloading it. Please help! I tried trying 'inline' instead of 'attachment' now still not getting options but just seeing those texts!

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

      What did you do differently from the video?

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

    When I click the link the machine brings up a download window and puts the file into downloads rather than as per your system offering me the options. (windows 11 and Edge browser)

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

      That's a setting in your web browser. You can change that in your browser settings

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

      @@Codemycom Thanks

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

    Can I also use this code to generate .txt file on django admin? My aim is to save user's information. Tha backend is an API.

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

      Huh? Your users info is already saved on the database, you don't need to add it to a text file to save it...

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

    Thx 😊

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

    sir how to turn text into webpage?

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

    Hi John,
    I used your codes in my different project and i have a different things in txt file. Such as;
    How can i fix this. And how can i make just save as a txt file in forexample templates/text_files?

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

      Not sure what you did, so I couldn't guess... I'd suggest rewatching the video and trying again

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

    Interresting

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

    how to create, Edit and then download CSV file on fly

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

      I have a whole course on python and excel if you're interested in those things

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

      @@Codemycom I want to convert from a CSV file to an AutoCAD file and I succeeded in that, but after the conversion, I cannot access the converted file because I do not want to save it on the server, but when converting it it generate file to download it on click.

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

      @@AhmedTheCoder Sorry, I don't know AutoCAD or how you did that.

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

      @@Codemycom thanks for replay, my question about after conversion I want to download the file and not save it in server.

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

    i tried it not work on me. the file cannot be download and when i inspect, the href is empty. how to fix it?

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

      check your code and figure out what you did differently from the video.

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

    I tired to do this for an individual file instead of all my files... it didn't work.. Suggestions?

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

      Sorry, not sure what you mean

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

    Thanks :)

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

    Sir please make how to use Ajax in django with server side validation

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

      I don't have any videos on Ajax.

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

      @@Codemycom will you make video on that in upcoming videos ?

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

      @@prasadmande8489 no, sorry. I don’t use Ajax.

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

    Another NICE Vid.... love to see how this could be done with excel (maybe i.c.w. csv)

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

      Yeah I'll probably do a video on that