Комментарии •

  • @RedEyedCoderClub
    @RedEyedCoderClub 2 года назад

    What video should I make next? Any suggestions?
    Follow me @:
    Telegram: t.me/red_eyed_coder_club
    Twitter: twitter.com/CoderEyed
    Facebook: fb.me/redeyedcoderclub
    Timecodes:
    00:00 - Beginning. Demo of the project.
    00:44 - Description of the starting Django project.
    01:50 - Adding a JavaScript file
    02:14 - Simple example of JavaScript onclick event handler
    04:00 - Sending an AJAX GET request to Django with Fetch API
    09:21 - Sending AJAX POST request to Django with Fetch API
    12:58 - Getting CSRF token for an AJAX POST request
    16:35 - Handling an AJAX POST request on the Django side.

    • @codedjango
      @codedjango 2 года назад

      Same project with Django + Vue3? I want to see how advantageous it would be to use a frontend framework over ajax? OR is ajax the best approach? Not sure

    • @RedEyedCoderClub
      @RedEyedCoderClub 2 года назад

      @@codedjango Thanks for comment and for suggestion.
      Using of native JS or a framework like Vue depends on your project. How complex should it be. Frameworks like Vue allows to manipulate DOM easily.
      For example, you got a list of objects from Django, a list of comments for example.
      How can you render them with pure JavaScript?
      With Vue.js you can use something like
      ...
      And you'll get the same markup for each comment easily.
      I think the advantages of using Vue.js on example of this project won't be obvious. The example is just too simple, too primitive.

    • @codedjango
      @codedjango 2 года назад

      @@RedEyedCoderClub Ok

    • @archibaldivanovich4103
      @archibaldivanovich4103 2 года назад

      Try Htmx , it seems really easy to use it ,instead writing on JavaScript !

    • @RedEyedCoderClub
      @RedEyedCoderClub 2 года назад

      @@archibaldivanovich4103 Thanks for comment. I already tried it.

  • @armii666
    @armii666 11 месяцев назад

    Олег, спасибо вам за этот маленький гайд!

  • @user-ep1rd5pw1w
    @user-ep1rd5pw1w 2 года назад

    Excellent and accessible explanation from the author. Thank you for such simple and clear lessons.

  • @TP-rs2un
    @TP-rs2un Год назад

    Very clear and detailed coverage on this topic. Thank you for this video.

  • @AnnaNEast
    @AnnaNEast 2 года назад

    Thank you for the wonderful Django AJAX guide.

  • @Candy-qe3nd
    @Candy-qe3nd 2 года назад

    Now everything is clear. Thanks for the information.

  • @lisw22
    @lisw22 2 года назад +1

    Great video, useful information. Thank you.

  • @user-ho6ul2vp2d
    @user-ho6ul2vp2d 2 года назад

    Thank you so much for the training work you have done, you have helped a lot!

  • @agatagate2842
    @agatagate2842 2 года назад

    A good analysis of the basic Django tools. Video tutorials help to better understand the methodology of building queries. Understanding the theory turns out faster when the material is presented in such detail.

  • @kostya9169
    @kostya9169 2 года назад

    Thank you very much for an interesting and useful video. Now even an inexperienced user can understand Django AJAX .

  • @user-jf6vp6xk8c
    @user-jf6vp6xk8c 2 года назад

    Thanks for information, it was helpful and easy to understand!

  • @user-uq4wt4gz6e
    @user-uq4wt4gz6e 2 года назад

    Great. thanks for the analysis

  • @oliveratkinson913
    @oliveratkinson913 Год назад

    With your help , I learned the capabilities of the Django AJAX language . I like an editor with color-coded commands and set comments in the text. This visualization helps in the work

  • @kostya9169
    @kostya9169 2 года назад

    Great video tutorial and very informative. Thank you very much it helped me..

  • @serg_D
    @serg_D 2 года назад

    Very insightful and informative video. The author to keep the brand is also high!

  • @user-rj8uk3uf2k
    @user-rj8uk3uf2k Год назад

    great video --- thanks

  • @daniellewis6117
    @daniellewis6117 2 года назад

    Learning Django AJAX diango should start with basic queries, understand the methodology of their construction, and then expand your knowledge. A very convenient editor, color highlighting, levels visually facilitates the understanding of the program

  • @OlegBosi
    @OlegBosi 2 года назад

    Super

  • @andreylagno2372
    @andreylagno2372 Год назад

    nice video

  • @andreylagno2372
    @andreylagno2372 2 года назад

    good video

  • @ameyapotdar461
    @ameyapotdar461 Год назад

    can you make a video of filtering items by color using django and ajax?great video!

  • @mcaq1
    @mcaq1 2 года назад +1

    Hi, nice video. Can you make another one how make both like and dislike buttons using Ajax and Django?
    Found little information about it

    • @RedEyedCoderClub
      @RedEyedCoderClub 2 года назад +1

      Ok, thanks for your suggestion!

    • @mcaq1
      @mcaq1 2 года назад

      @@RedEyedCoderClub I look forward to it

  • @nadijalesina6864
    @nadijalesina6864 2 года назад

    A tutorial on Django AJAX without practical tasks will not do much good. Therefore, such video analysis of the properties and methods of the language helps a lot in the application and use of this mechanism.

  • @TheApgreyd
    @TheApgreyd 2 года назад

    Will there be more videos on "Олег Молчанов"?

  • @captainfracassful
    @captainfracassful 2 года назад

    I begin to understand how it works if I resume it is possible to do the same operation with pyscrip if we create an asynchronus method beforehand, then you use the browser api to fetch you AJAX post (?) anyway Thank's for the trouble as usual great video !

    • @RedEyedCoderClub
      @RedEyedCoderClub 2 года назад

      Thank you!
      I have videos about using PyScript, and the idea is the same.

  • @farzadmf
    @farzadmf 2 года назад +2

    Isn't `data` already `await`ed by doing `await res.json()`? I don't think we need to `await` it again, do we?

    • @RedEyedCoderClub
      @RedEyedCoderClub 2 года назад +2

      You are right! No need to do it. Thanks for your comment!

  • @sashapomin
    @sashapomin 2 года назад

    How many is it needed studies time, what such to do?

  • @lizardsquad6875
    @lizardsquad6875 Год назад

    Олег, это же вы?))

  • @lukasgv92
    @lukasgv92 Год назад

    Unfortunately, I am getting an error when trying to fetch the random numbers at the front-end by clicking the "go" button (08:08). My broswer sends the error message :"r: Unexpected token '

    • @lukasgv92
      @lukasgv92 Год назад

      Just solved it myself - in the javascript file I wrote "header" instead of "headers". Sorry for the confusion and thank you for the amazing tutorial!

  • @lich_liars6735
    @lich_liars6735 Год назад

    My code just doesnt seem to fetch the data at 6:02 doesnt work with the line await fetch()

    • @RedEyedCoderClub
      @RedEyedCoderClub Год назад +1

      Did you check your code twice? Focus on your understanding of what you are doing - it's the key.

    • @lich_liars6735
      @lich_liars6735 Год назад

      @@RedEyedCoderClub Yeah, i forgot to check the async function. Getting js function to work on django is really toughest part for me somehow.

  • @ajoyjohn1487
    @ajoyjohn1487 Год назад

    can you send the link to the code

  • @sashapomin
    @sashapomin 2 года назад

    power play