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.
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
@@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.
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.
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
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
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.
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 !
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 '
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.
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
@@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.
@@RedEyedCoderClub Ok
Try Htmx , it seems really easy to use it ,instead writing on JavaScript !
@@archibaldivanovich4103 Thanks for comment. I already tried it.
Олег, спасибо вам за этот маленький гайд!
Excellent and accessible explanation from the author. Thank you for such simple and clear lessons.
Thank you!
Very clear and detailed coverage on this topic. Thank you for this video.
Thank you!
Thank you for the wonderful Django AJAX guide.
Thank you!
Now everything is clear. Thanks for the information.
Thank you!
Great video, useful information. Thank you.
Thank you!
Thank you so much for the training work you have done, you have helped a lot!
Thank you!
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.
Thank you!
Thank you very much for an interesting and useful video. Now even an inexperienced user can understand Django AJAX .
Thank you for the comment!
Thanks for information, it was helpful and easy to understand!
Thank you!
Great. thanks for the analysis
Thanks for the comment!
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
Thank you!
Great video tutorial and very informative. Thank you very much it helped me..
Thank you!
Very insightful and informative video. The author to keep the brand is also high!
Thank you!
great video --- thanks
Thanks for watching, and for the comment!
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
Thanks for comment!
Super
Thank you!
nice video
Thank you!
good video
Thanks for comment
can you make a video of filtering items by color using django and ajax?great video!
ok, I'll try
Hi, nice video. Can you make another one how make both like and dislike buttons using Ajax and Django?
Found little information about it
Ok, thanks for your suggestion!
@@RedEyedCoderClub I look forward to it
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.
Thank you!
Will there be more videos on "Олег Молчанов"?
may be
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 !
Thank you!
I have videos about using PyScript, and the idea is the same.
Isn't `data` already `await`ed by doing `await res.json()`? I don't think we need to `await` it again, do we?
You are right! No need to do it. Thanks for your comment!
How many is it needed studies time, what such to do?
Thanks for comment. About 30-45 minutes
Олег, это же вы?))
yep
@@RedEyedCoderClub хорошо получается👍
@@lizardsquad6875 thank you
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 '
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!
My code just doesnt seem to fetch the data at 6:02 doesnt work with the line await fetch()
Did you check your code twice? Focus on your understanding of what you are doing - it's the key.
@@RedEyedCoderClub Yeah, i forgot to check the async function. Getting js function to work on django is really toughest part for me somehow.
can you send the link to the code
Added link to the description
@@RedEyedCoderClub thanks
power play
Thanks for comment!