How To Work With Ajax In Django Using Vanilla JavaScript | Submit Form Without Refresh

preview_player
Показать описание
In this tutorial,we will see how to use the JavaScript Fetch API to integrate AJAX on Django, we will see first how Fetch API works and then we will use it to submit comment form in Django asynchronously.
-------------------------------------------

-------------------------------------------
-------------------------------------------

TIMESTAMP:
00:00 - Introduction

02:00 - How the Fetch API works
07 :00- Installing Django
12:00 - Creating models
19 :00- Using the Fetch API in Django

Thanks For Watching.

Don't Forget To Subscribe For More Videos.

-------------------------------------------

Freelancing:

-------------------------------------------

My Profiles:
-------------------------------------------

Contact Us:
Рекомендации по теме
Комментарии
Автор

after watching hundreds of youtube videos the only one who saves my life is you easy perfect and without JQuery thanks man

alexdin
Автор

Thanks so much. Please does it still work with Django 5

bakaresegun
Автор

hey i run your project and got few errors, maybe you can help
1, when you try to add comment as Anonymous user it gives AnonymousUser' object is not iterable.
2. you need to add author by hand in the admin so you can post comments if you dont do that it says that you cant find the author instance, i think you can maybe do onetoonefield and make it work ?
would love to knew what your solution is, thank you great content

davidrosen
Автор

Spent days trying to figure out how to do this without JQuery, finally cracked it after watching this. Thank you!

Supersonic
visit shbcf.ru