Todo App | Django REST Framework  & Ajax

Todo App | Django REST Framework & Ajax

Dennis Ivy

4 года назад

105,867 Просмотров

Ссылки и html тэги не поддерживаются


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

Iqbal Syed
Iqbal Syed - 15.10.2023 02:04

Hi Dennis, you have another Django todo app video on your channel. is it totally different from that one?

Ответить
Devanshu Augusty
Devanshu Augusty - 01.06.2023 10:14

Why are we using the rest framework and api. When we can build a todo site with only django.. can anyone tell me the difference ?

Ответить
Christopher Trip
Christopher Trip - 05.05.2023 06:50

Anyone point me to any similar videos to work within the structure of Django RESPT API + Javascript but to additionally integrate OpenAI's text completions to let's say, add a "Assist" button to send the ToDo list item title to OpenAI and to receive and display a response from OpenAI?
Love your videos Dennis. Thank. you for your time.

Ответить
Scarlet lady
Scarlet lady - 28.04.2023 21:00

The year is 2023, and the javascript error with editbtn and the for loop, has been moderated. Now the original code works fine now. `for(let i in list){let editbtn = document.getElementsByClassName('edit')[i] editBtn.addEventListener('click', function(){ editItem(list[i]); }` works fine now in Javascript. Big fan of your videos Dennis! Much love from Nigeria

Ответить
Siva prasad Kommula
Siva prasad Kommula - 06.03.2023 19:14

when i try to update the task a new task is added to the list. I can't figured the mistake what i done, can anyone help me !

Ответить
AlmelkyTech
AlmelkyTech - 30.01.2023 12:38

Very thank you!

Ответить
Dmitry Mikhailov SPb
Dmitry Mikhailov SPb - 13.01.2023 12:56

Amazing

Ответить
Mohamed Al-Daly
Mohamed Al-Daly - 25.11.2022 12:13

What if I wanna deploy the api app only and use my endpoints in another website uploaded on some other platform like netlify?

Ответить
Mohamed Al-Daly
Mohamed Al-Daly - 24.08.2022 19:55

I love how u try to fix the problems and keep going with the tutorial <3

Ответить
Irin Sajan
Irin Sajan - 12.05.2022 10:57

Something that I really wanted! You are doing a great job :) Thank you for this content.

Ответить
Biswadeep Bhowal
Biswadeep Bhowal - 23.03.2022 08:47

Where have you uploaded your templates?

Ответить
DuttyBwoy
DuttyBwoy - 20.03.2022 04:56

i got my rest Api created and perfectly functional but I do the post method Javascript using fetch() part and it's perfectly written and doesn't give me any errors but it DOES NOT get saved on the database sigh 😫... this ishhh is giving me a big headache...because something that's literally impossible is happening... the url I pass is the endpoint I have on my api for posting stuff (when I post stuff from the django rest framework interface it does work and gets saved) but does not get added on the database from the frontend interface using js... and I've written every single line of code as shown in the video.... the fuction submit does work and run from top to bottom, and zero errors reported... but it just does NOT get added on the database.. 🤷🏽‍♂️ 🤷🏽‍♂️ 🤷🏽‍♂️ No idea... I'm lost and confused and dissaponted asf

Ответить
Nitish Bhardwaj
Nitish Bhardwaj - 14.03.2022 21:50

Thank you so much @Dannis for this session, I just now completed this, growing my skills from here...

Ответить
Anopta
Anopta - 24.01.2022 11:44

Hi Dennis. That was explosive. Thanks very much. I have a quick question. Why did you use POST method for Update instead of a PUT method? I am just curious.

Ответить
Yorker
Yorker - 08.12.2021 16:04

thanks ! good info

Ответить
N. Lesly
N. Lesly - 25.11.2021 21:59

Waaooooooo! I admit that this is one of the best videos I have ever watched. Thanks very much Dennis Ivy
Look forward to watch that of React

Ответить
Thabo Pali
Thabo Pali - 17.09.2021 11:27

This is a great video

Ответить
Ayush srivastav
Ayush srivastav - 19.08.2021 15:20

my create function worked but i didnt submit my csrf token can anyone explain why?

Ответить
Andrew Baehr
Andrew Baehr - 15.08.2021 19:01

Thank you very much

Ответить
Pritpal Singh
Pritpal Singh - 31.07.2021 16:06

Thanks man you helps me alot to complete my tasks

Ответить
Md. Firoz Mahmud
Md. Firoz Mahmud - 20.07.2021 10:16

Great Explanation as Before

Ответить
Yacine Rouizi
Yacine Rouizi - 26.06.2021 21:12

thank you

Ответить
Chaitanya Asati
Chaitanya Asati - 01.06.2021 16:32

Thank you for creating same project in Django without Rest Framework, Django with Rest Framework and React+Django. It helped a lot.

Ответить
Ishak Rai
Ishak Rai - 20.04.2021 10:30

Another way to solve the event listener being added to only the last item.

for (var i in list){
let editBtn = document.getElementsByClassName('edit')[i]
let item = list[i]
editBtn.addEventListener('click', function(){
editTask(item);
console.log(item);
})
}

Ответить
Богдан б
Богдан б - 29.03.2021 11:11

I had another idea on the editItem part: put an inline onclick function and pass the current item id as a parameter.

Ответить
Anton Gjoka
Anton Gjoka - 17.03.2021 10:48

Ma mann thank you, this tutorial is so good, dislikes are from haters.

Ответить
Dejan Jovanovic
Dejan Jovanovic - 09.03.2021 20:56

I tried to follow js knowing only python, this has no sence xD

Ответить
Sang Le
Sang Le - 27.02.2021 18:00

Thank you for your wonderful lesson!!!

Ответить
Yasitha Nadeeshan
Yasitha Nadeeshan - 26.02.2021 04:35

Thank you very much!!! useful tutorial....

Ответить
CEB02 Ashutosh Singh
CEB02 Ashutosh Singh - 02.02.2021 11:16

Hello!

I may have found a easier way to manage the "edit" and "delete" keys.

You can create a function with the id as a input which send the fetch request and stuff.

You can then call it inside the dom using onClick HTML method and pass in the id using template literals.

Ответить
Azad Erdoğan
Azad Erdoğan - 30.01.2021 18:27

thank you so much sir

Ответить
script kid
script kid - 29.01.2021 17:54

what are the benefits of using this over a react Django rest type architecture?

Ответить
Self-Taught Programmer
Self-Taught Programmer - 27.01.2021 17:24

you need to update this with the latest js

Ответить
ZephRogue
ZephRogue - 27.01.2021 16:55

Why you didnt use the jinja2 in html?

Ответить
quack quack
quack quack - 18.01.2021 00:38

why on minute 32 you dindt just do : <button class="btn btn-sm btn-outline-info edit" onclick="edit_item('+data[i].id+')">Edit</button>?

Ответить
Viren Patel
Viren Patel - 16.01.2021 20:11

Thank you for this amazing tutorial, I have a better understanding of DRF now.

There is an alternative solution for CSRF token that is:

let csrftoken = document.querySelector('input[name="csrfmiddlewaretoken"]').value;
then send this to the fetch header.

Ответить
reda benyoub
reda benyoub - 15.01.2021 12:52

thank's a lot, u'v rockd it at all

Ответить
Kalkulus
Kalkulus - 14.01.2021 01:34

Thanks for sharing... We won't forget to subscribe.

Ответить
Mohammad Abdul Ahad
Mohammad Abdul Ahad - 11.01.2021 19:18

Thanks, learned a lot. Opened a pull request ;P Consider looking into it.

Ответить
JAPSIMRAN SINGH
JAPSIMRAN SINGH - 16.12.2020 17:46

Love your django tuts
You just explain it perfectly.

Ответить
Pariston Hill
Pariston Hill - 13.12.2020 21:05

Thanks for the good tutorial. However what you did with the edit and delete event listeners was very poorly explained.

Ответить
Abhinav Jha
Abhinav Jha - 06.12.2020 22:18

what is the use of making rest framework in the backend if we can do all the CRUD operation from django-admin panel. Are both different? please reply to me .

Ответить
PAVAN KUMAR
PAVAN KUMAR - 30.11.2020 06:38

please make a tutorial on Django channels

Ответить