Django AJAX Tutorial: Basic AJAX in Django app with Fetch API | Django casts

preview_player
Показать описание
This Django AJAX Tutorial is about how to do basic AJAX using Fetch API with Django framework. That is how to perform AJAX GET and POST requests (xhr requests) to Django with Fetch API.
This Basic Django AJAX Tutorial goes over some of the basics you need to do and know when doing AJAX in Django project.

============ FOLLOW ME =================

============ SOURCE CODE ================
📎️ Is available via Patreon:
=========================================

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.

✴️✴️✴️ Web Scraping course ✴️✴️✴️
is available via Patreon here:

or its landing:

✴️✴️✴️ PLAYLISTS ✴️✴️✴️

🔹Django Tutorial: Blog Engine

🔹Kivy Tutorial: Coppa Project

🔹Telegram Bot with Python (CoinMarketCap)

🔹Python Web Scraping

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Red Eyed Coder Club is the best place to learn Python programming and Django:

Django AJAX Tutorial: Basic AJAX in Django app with Fetch API | Django casts

#django #djangoajax #redeyedcoderclub
Рекомендации по теме
Комментарии
Автор

What video should I make next? Any suggestions?
Follow me @:

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.

RedEyedCoderClub
Автор

Thank you so much explaining in such a simple manner I couldn't find any simple explanation since yesterday you made it so easy❤❤❤

theanonymous
Автор

Great video, useful information. Thank you.

lisw
Автор

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

armii
Автор

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

eprdpww
Автор

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.

agatagate
Автор

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

kostya
Автор

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

oliveratkinson
Автор

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

TP-rsun
Автор

Thank you for the wonderful Django AJAX guide.

AnnaNEast
Автор

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

serg_D
Автор

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

daniellewis
Автор

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

jfvpxkc
Автор

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

kostya
Автор

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

houlvpd
Автор

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

mcaq
Автор

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.

nadijalesina
Автор

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 !

captainfracassful
Автор

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

ameyapotdar
Автор

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

farzadmf