Videos notes provide by Justin Yang. Justin followed this video and asked me to link up the notes he took so here they are :) docs.google.com/document/d/1eu_ImYL21W905howHsyW782BPxKVJp9vz5nlJYB2G2E
@navidabasi4 жыл бұрын
could you explain me this 2 line: form = TaskForm(request.POST) ==> icant understand the meaning of it (line 14 views.py) form = TaskForm(instance=task) ==> what are this instances which you are using in the code?(line 25 views.py)
@aanchalsharma52644 жыл бұрын
thanks justin
@Jack_X0754 жыл бұрын
@@navidabasi TaskForm is a modelForms django class (forms.ModelForm).... TaskForm(request.POST) basically creates a TaskForm object with all the information from the HTML form fed in. when we say instance=task, it creates a ModelForm object, with data from the Django Database pre fed in. "Instance" implies "at that point in time". You can check it out yourself... just add a print statement below the lines and do: print(str(form)) and in the console, cmd prompt for me, you'll get something like this: Inside If //(added a print statement right inside the if block in updateTask view) Title: Complete: It has a label, an input field etc... This will go in the HTML file as programmed.
@080somyasrivastava64 жыл бұрын
Thanks for adding !! Extremely useful resource
@xiaoli38784 жыл бұрын
Thanks Justin! That's really helpful!
@thomasvmf39844 жыл бұрын
I've been for like a month watching tutorials about Django and that is the best one
@DennisIvy5 жыл бұрын
00:00 - Introduction 1:40 - Create project 3:00 - Migrate database & create user 5:05 - Create app 5:50 - URL Routing 8:30 - Templates 9:45 - Create Model (Task) 13:25 - Render data (Tasks) in template 15:10 - Model Form 19:25 - Create Item 22:00 - Update Item 29:20 - Delete Item 34:45 - Cross out complete items 34:05 - Style template
@ardabili3 жыл бұрын
hai dennis, i love your channel. after we create this app, what your recommend to the next app?
@mdsohail53714 жыл бұрын
For all the days I am following and learning from you, one thing I have noticed is the 3C's that makes your contents stand out i.e. concreteness , clarity, and clear. Thank you for all the all work you put in bringing such outstanding content. Your channel is just getting better with time, Top-notch Quality!
@moelatolearning54864 жыл бұрын
Hey.. Im Indonesian, a beginner for Python django. you've given me systematical way to start the project. although I finally made it, Im still learning n keep watching yours to understand the steps. Thanks a lot Dennis..
almost dropping django moving to flask then suddenly I found this amazing video tutorial. boom! done todo list. thank you so much!
@DennisIvy4 жыл бұрын
That's amazing! Glad I kept it simple enough. Once you get through the learning curve django can really be an amazing tool :)
@Ivcota4 жыл бұрын
@@TechandcoffeeKe it would probably make more sense to do a calculator in JavaScript
@rockysingh22004 жыл бұрын
@@Ivcota why?
@Ivcota4 жыл бұрын
@@rockysingh2200 Javascript can handle everything on the client-side, and it would be more responsive. Also, it would be easier to implement because you don't need to send data up and down using get and post requests.
@ajay25524 жыл бұрын
@@Ivcota is it possible in django? Like without sending requests to the server it updates in the browser itself
@charlesbovalis65912 жыл бұрын
Dennis, not only this KZbin presentation is awesome, but I am also purchasing your Django class later on today. Your clarity and amazing presentation / teaching skills is priceless !!!!! I almost started to give up on where to turn for a proper Django tutorial until I found yours that MADE SENSE !!!!!! By the way - I have already purchased your course.
@rutviktak7164 жыл бұрын
Got my day started by completing this small project 😃 And it feels so good now 😊
@l4m55 жыл бұрын
I ran away from Django to flask because the tutorials I used were all complicated... now I'm back to Django cause of your simple tutorials... Thank you
@DennisIvy5 жыл бұрын
Thanks amazing to hear! I’m honored to hear that my tutorials were able to help you with that :)
@joelmiruni86604 жыл бұрын
Teaching Django via projects makes me understand very well. Thank you. Am looking forward to learn how to pass variables and conditions in views to meet the logic of the app.
@triders4 жыл бұрын
Hello from Russia! I have been learning python for about 1 year, yhis is my first coding experience. But still didn't start making things like that because I didn't learn any framework at all. Maybe I was afraid of starting using frameworks, they seemed complecated. But step by step I finished this tutorial and liked it very much. I definately will start your Crash Course, thanks a lot!
@DennisIvy4 жыл бұрын
Awesome to Hear! Glad I kept it simple enough :) What part of Russia? My family left Keiv in 1990 and my wife's family is from Moscow.
@triders4 жыл бұрын
@@DennisIvy I'm living now in Saint-Petersburg, but I was born in Naberezhniye Chelny (Набережные Челны).
@DennisIvy4 жыл бұрын
Saint-Petersburg is a beautiful city :) My wife and I might visit next summer, Last time was 2014.
@frikkievandermerwe5 жыл бұрын
I am loving this. Django is finally starting to make sense. Will be doing your longer crash course next. Coming from PHP background (and Visual Basic), this is awesome and so much better! Thanks man! Keep up the great work!
@DennisIvy5 жыл бұрын
Glad to hear that!
@garyarellano41664 жыл бұрын
Great tutorial Dennis I was moving to flask and some friends talk me about you and guess what I will keep on Django thanks alot
@KevinTempelx4 жыл бұрын
Are you still going at it?
@darkistgrx55114 жыл бұрын
@@KevinTempelx this if possible any progress updates mate?
@evenmonk63744 жыл бұрын
Денис, замечательный английский. Спасибо за тутор, подписался
@syrgakomuraliev4 жыл бұрын
Еее бой, все так просто объяснил. Недавно оставил на английском комент к твоему последнему видео, всегда думал - имя такое, сто пудов говорит на русском, но такой свободный английский, что аж засомневался
@muhammadusmanghani49924 жыл бұрын
best video on django so far
@charlesbovalis65912 жыл бұрын
Dennis, once again you ROCK !!!!!!!
@ishitamahajan7814 жыл бұрын
Thank you so much : ) For a beginner in Django like me this was the perfect starting point.
@farhansaikh13122 жыл бұрын
Thanks a lot ! I have now all the basic understanding to build a complete site
@parthmittal56253 жыл бұрын
Thank you for the easy yet helpful tutorial! ✨
@mabeleain3320 Жыл бұрын
Thanks Dennis, your tutorials are really helpful for me!!!
@bertrandfossung12164 жыл бұрын
Thanks Denis. This tutorial just gave me a head start into app building. I hope to learn from you as I move along.👍
@kasimshobak32814 жыл бұрын
Thank you Dennis for the informative content! Please keep up teaching Django through projects.
@jayshree90374 жыл бұрын
Thanks man I was designing the prototype and I felt really stuck. This is a savior
@xiaoli38784 жыл бұрын
Great tutorial! You make things easy to understand, which is really helpful for beginners like me. Thank you!
@samuelmontypython83814 жыл бұрын
Great vid! For any absolute beginners out there, read “Python Crash Course” by Eric Matthes. The ‘Web Application’ section goes into detail from scratch (slowly and explains every line of typed code) and lets you set up your first webapp successfully. After creating a super basic ‘forum’ webapp with topics and entries, you’ll be able to follow along with this vid much better 👍
@carterbrown28644 жыл бұрын
Thanks for making this vid! Very informative and helpful for a beginner like myself.
@saolgoal37003 жыл бұрын
Perfect refresher for Django
@milespearce2 жыл бұрын
This is an incredibly helpful tutorial. Thanks so much!
@vicentecfn4 жыл бұрын
Great stuff for beginners. Your channel is awesome
@rakkaalhazimi36725 жыл бұрын
Nice tutorial, I'm way more faster learning Django through your videos.
@DennisIvy5 жыл бұрын
:)
@nikhilmahajan41294 жыл бұрын
me tooo! thanks dennis
@pj75464 жыл бұрын
I am new to this guys channel and its LIT ! you just got asubscriber
@DennisIvy4 жыл бұрын
Appreciated :)
@pj75464 жыл бұрын
@@DennisIvy I have a question Should I learn HTML CSS and Javascript (Front end) then go to Django or backend in general
@shohjahonmirakov85204 жыл бұрын
Thanks Mr Dennis lvy for best and useful videos 👌
@louissmith40244 жыл бұрын
Around 15:03, I have the for loop set up but the actual tasks don't show on the todo list. Any suggestions?
@Safactamas4 жыл бұрын
In the views, have the context say: context = { 'tasks':tasks } My issue was that my context looked like this (it said task instead of tasks): context = { 'task':tasks }
@jasperzanjani4 жыл бұрын
17:00 wait a minute.. you import forms from django.. and then you import ModelForm from django.forms??
@diegorapoport25264 жыл бұрын
I just saw it and I'm like WHAAAAATTT????
@animeshsingh42904 жыл бұрын
Doesn't really matter, you can do just do the later thing or both
@jasperzanjani4 жыл бұрын
@@animeshsingh4290 details matter
@simpsonkamonere39262 жыл бұрын
Brilliant stuff, easy to follow
@rayganmudberry3755 жыл бұрын
hey thank you for your awesome mini project on django. and request please keep making awesome project on django and new ideas and techniques. thank you.
@eduardolucas3914 жыл бұрын
Superb! Congratulations on your wonderful tutorial.
@ashoksingh34074 жыл бұрын
Thank you for making this video.
@DennisIvy4 жыл бұрын
My pleasure Ashok :)
@tektalk4kids3 жыл бұрын
ABSOLUTELY AN AWESOME VIDEO
@MagicianSaransh3 жыл бұрын
Man loved this ❤️🙏
@mateoscarafia51104 жыл бұрын
nice, didnt know django was so powerfull...its like laravel but with python! cooll
@DennisIvy4 жыл бұрын
Yes you can do a lot with django :)
@Nicolae_1634 жыл бұрын
Hi there. I just have a question: @15:30 when you passing the model task into template by a for loop, why the date, and completed didn’t display? Thanks for sharing your knowledge.
@eduardolucas3914 жыл бұрын
@@Nicolae_163 Hi Nicolae! The reason is because of the function def __str__(self) which returns only one field: title. If you want to see more fields, just concatenate it with the others.
@KSals4 жыл бұрын
Keep up the great work man!
@maazshahid89204 жыл бұрын
At 19:42 can you please explain what do you mean by base url path? which url are you talking about? the directory to the html file or to the urls.py folder
@aditiparashar91712 жыл бұрын
Clear and simple
@erkebulanduishenaliev55064 жыл бұрын
Thanks, bro for the video! A really helpful video.
@srilankaninjapan3 жыл бұрын
Thank you, I had fun doing this.
@trungthanh41344 жыл бұрын
Thank you! I hope you could make more videos like this.
@gymnopedies74 жыл бұрын
you're my teacher. thx
@DennisIvy4 жыл бұрын
:)
@goodtime80074 жыл бұрын
Min 41:13 only get the submit button without title, with withe rectangle and complete
@fabaddd4 жыл бұрын
Im new to programming, so im new to python too, so its difficult for me to understand object oriented programming, i get lost really easy, but thanks for this tutorial, now im going to trying to reverse engeneer this ♥
@alexandermendoza342410 ай бұрын
Hi Ivy, me gusto mucho tu curso, felicitaciones
@prateekarora45494 жыл бұрын
Nice. You really did a great job!
@virajsaiya36534 жыл бұрын
Hi Dennis I did not understood the dynamic urls at 23:41 could you explain or give any reference .
@keerthiakula64654 жыл бұрын
In update field. When I enter data it is not updating new data to db instead showing the old data in list page with wierd url . Can someone help me with this
@nikhilmahajan41294 жыл бұрын
great tutorial dennis
@cezarhirsescu76413 жыл бұрын
9:34 I get an error from using this line of code. It says: templateDoesNotExist at /. It also tells me that "app/list.html" doesnt exist. I followed the tutorial step by step and my templates directory is in my app (appname is app). any sugesstions?
@cezarhirsescu76413 жыл бұрын
i figured it out it was a settings.py blunder
@mustafagulec31383 жыл бұрын
@@cezarhirsescu7641 hey , how did yo u solve it ? i have same problem
@KidsShortStoriez4 жыл бұрын
Hey Hi Dennis, really like the approach and way you did this from scratch..thanks a lot,, subscribing you Guru 🙏🏽 from India
@MrYoklmn5 жыл бұрын
Крутой видос. Спасибо. Про аутентификацию и чат буду ждать видосы)
@kaleshbiju67532 жыл бұрын
Thank you Dennis, it's all new to me as a beginner but this video made me easy to understand. The app looks good and thanks for the tutorial. I have a query regarding this it is that how could we add user login to this application.
@victormungai4 жыл бұрын
Interestingly enough, When updating, despite following instructions to the letter, my update function creates a new object. Using django 3.1.3 Any help would be nice. thanks though.
@victormungai4 жыл бұрын
Update: I have figured out where error was at. In my update_task.html, I noticed I had the value "/" in the action parameter in my form, so it would go to the index method hence creating a new task all together as it was processed by the index method. It was like a eureka moment. haha. I can actually say I am learning! Thanks Dennis. Suggestion: Maybe you could do more videos with the more updated versions of django in the coming months of the year.
@rashidaliev94603 жыл бұрын
@@victormungai OH MAAAN, thank you SOOO much. I was trying to figure out what's the problem during 2 hours. You saved my day, bro!
@Vee_Vaa4 жыл бұрын
@Dennis Ivy My code isn't working half way thru the tutorial. It says no module named "tasks". I've looked in settings.py and I feel like I've done close to everything to retrace my steps. I am using a bit different version (3.03) and also using Atom. Is there something that I am not doing right?
@doockathefinanceguy3 жыл бұрын
I'm having the same issues. Just scrolling through the comments to see if anyone has found any solution for this issue
@craigphollingsworth14603 жыл бұрын
this is excellent. Thank you!
@munenemuondu10333 жыл бұрын
Nice JOB.👍
@legendbreakers60394 жыл бұрын
At 21:31 the redirect thing is not working every6 is ok there is no error coming but the problem is it is not redirecting anythin typing in an input field.
@sandeepvarmac4 жыл бұрын
Hi Denis, Great Tutorial. Right now, As you click on the update or Delete button, control is routed to another form/page. I was wondering if you could show how to implement the same using the Bootstrap's Modal Plugin?
@stephenchege3 жыл бұрын
Awesome Tutorial ....Thank you
@himanshutiwari47974 жыл бұрын
Hey dennis thanks for this informative tutorial but i am getting error... Method not found [post] Method not found : / 21:40... Please help me
@DennisIvy4 жыл бұрын
It may be the way you are sending the data. Email me at dennisivy11@gmail.com with your source code and I can take a look. Please reference this comment so I know where the email is coming from :)
@maazshahid89204 жыл бұрын
Hey, did you find any solution? The only difference between his and my project is that I created a app using py manage.py startapp todo which created a new directory where all my model and setting files are. seems like you also did the same thing. Can you please help me?
@o00o00o00 Жыл бұрын
Can you give a general framework if I have a database of items and I want to push them out into the web app at a certain time base on the time from data
@dgrigorev5 жыл бұрын
Спасибо! Отличное видео
@DennisIvy4 жыл бұрын
пожалуйста :)
@stillon72804 жыл бұрын
Any ideas? TemplateDoesNotExist at / tasks/list.html django.template.exceptions.TemplateDoesNotExist: [correct location is here] [03/Apr/2020 22:28:33] "GET / HTTP/1.1" 500 80433 it's the correct location, and the file(s)* is there. (* I created more identical versions of list.html in different file - types, just to be sure) Yet it doesn see anything. Solved: part 1: for some reason the return render(request, 'tasks/list.html') had to be return render(request, 'tasks/templates/tasks/list.html') Part 2: in settings.py I had to add the project path to TEMPLATES[{ ... 'DIRS' = [project path here]..}]
@yusufahmed69444 жыл бұрын
Thumbs up for easy section access
@almazabd81754 жыл бұрын
Thanks! A separate example for forms inline would be very much in demand as tutorial.
@DennisIvy4 жыл бұрын
Are you referring to "Inline formsets"
@almazabd81754 жыл бұрын
Hi @@DennisIvy ! Yes I mean Inline formsets.
@faustiekay65174 жыл бұрын
Thankyou so much! It was very helpful! :)
@namelesevil1 Жыл бұрын
Well explained everything
@tolualimi14 жыл бұрын
Let's say for the delete functionality, you would not like to redirect to another page for confirmation, how would your code change?
@hafeezpp4 жыл бұрын
Great Video. Love from india
@shohjahonmirakov85203 жыл бұрын
Good job! Thanks bro!
@mezgoodle4 жыл бұрын
Instead of .btn-danger you can use .btn-warning And what about styling update_task.html and delete.html?
@DennisIvy4 жыл бұрын
Thanks for the recommendation :) The purpose of the video was to show CRUD operations in django so I didn't want to spend to much time on styling since that wasn't the point.
@aniketghosh18674 жыл бұрын
nice video and excellent explanations
@brightnwachukwu75814 жыл бұрын
Thanks Denis.. thumbs up. You lectures are really great and insightful... A quick one, whats the function of the *attrs* in your form files and also whats the function of the __str__ function in your models
@tech-py4 жыл бұрын
Thanks a lot man! Good Tutorial
@harshat20714 жыл бұрын
hey .. I'm getting an error in delete section. noReverseMatch at /delete /2 Reverse for 'list' not found. .... Could you please get me out of this ...
@andreyzaytsev12924 жыл бұрын
the same
@andreyzaytsev12924 жыл бұрын
Hey, I found my mistake, maybe you also wrote a 'list' somewhere with capital L
@lungelogwala67214 жыл бұрын
Have you solved the problem because I'm getting the same thing
@sivapremchandreddygoluguri72772 жыл бұрын
Cancel Try this instead of that line
@york00142 жыл бұрын
At the 'Create Item' section it stops working for me. For me it doesn't create the item even tho I followed all the steps. Also the submit type of input is just a submit button and now a field of text. I even did form.title. I am not sure if it just doesn't save my values or if the submit input type changed.
@AI4Productivity4 жыл бұрын
I am very glad and blessed to watch your tutorials, these helped me in desperate times. i want to request you to work with bootstrap modals. like click view from a table to show its data in pop up modal and other CRUD operations instead of redirect to separate pages.
@Abhi-kp1fs3 жыл бұрын
Thank you so much brother!
@nand24944 жыл бұрын
12:18 gotta leave it here, will come back later :)
@rickykuo83603 жыл бұрын
did you come back?
@harwinderthakur97084 жыл бұрын
just subscribed. Great tutorial Thanks
@DennisIvy5 ай бұрын
Don't forget to check out my Complete Django course! dub.sh/NvGboTI
@tanaysheth86013 жыл бұрын
I have made such an app using your methid above... Can you please tell how to delete the task object straight by pressing delete button instead of directing the user to another page.
@devanshsolani25934 жыл бұрын
Amazing tutorial
@arihantjainajbil81822 жыл бұрын
Hello sir I am getting this when i print the 2 task which you printed To Do List Task object (1) Task object (2)
@heltonteixeira88803 жыл бұрын
nice project, this wiil help me a lot :)
@RishiSaikia3 жыл бұрын
Hi Dennis, thanks for a great tutorial. I also just signed up for your complete Django course. One question I had: If I want to include tags to classify the to-do items, I can include them as separate model with many:many relationship. This allows user to select multiple tags when creating a to-do item. This works fine; however, what if we also want to give user the choice to CREATE new tags (in addition to selecting existing ones) when creating a To-Do entry?
@АлександрКотов-ц7л4 жыл бұрын
its so beautiful! Thanks you
@somnvm372 жыл бұрын
Will this video work for the new 4.0 django?
@snehasachdeva37243 жыл бұрын
why dont we see styling in update and delete pages?
@TheCapture062654 жыл бұрын
Well Explained Dennis. Great Job. But, I can't delete items (unable to get submit button after clicking on delete)
@saadrahman78684 жыл бұрын
need help?
@wevertonsantiago43053 жыл бұрын
You help me so much! Thanks very much! New subs here \o/ thanks again.
@VietNguyen-hz1mf4 жыл бұрын
Can you please show us how to use bootstraps and implement it in this project ?