To Do App | Django 3.0

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 280

  • @DennisIvy
    @DennisIvy  4 года назад +44

    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

    • @navidabasi
      @navidabasi 4 года назад

      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)

    • @aanchalsharma5264
      @aanchalsharma5264 4 года назад

      thanks justin

    • @Jack_X075
      @Jack_X075 4 года назад

      @@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.

    • @080somyasrivastava6
      @080somyasrivastava6 4 года назад

      Thanks for adding !! Extremely useful resource

    • @xiaoli3878
      @xiaoli3878 4 года назад

      Thanks Justin! That's really helpful!

  • @thomasvmf3984
    @thomasvmf3984 4 года назад +8

    I've been for like a month watching tutorials about Django and that is the best one

  • @moelatolearning5486
    @moelatolearning5486 4 года назад +3

    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..

    • @febryramadhan1743
      @febryramadhan1743 4 года назад

      nyari channel indo yg update soal django susah bener

  • @mdsohail5371
    @mdsohail5371 4 года назад +5

    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!

  • @JoanApita
    @JoanApita 4 года назад +15

    almost dropping django moving to flask then suddenly I found this amazing video tutorial. boom! done todo list. thank you so much!

    • @DennisIvy
      @DennisIvy  4 года назад +3

      That's amazing! Glad I kept it simple enough. Once you get through the learning curve django can really be an amazing tool :)

    • @Ivcota
      @Ivcota 4 года назад

      @@TechandcoffeeKe it would probably make more sense to do a calculator in JavaScript

    • @rockysingh2200
      @rockysingh2200 3 года назад

      @@Ivcota why?

    • @Ivcota
      @Ivcota 3 года назад

      @@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.

    • @ajay2552
      @ajay2552 3 года назад

      @@Ivcota is it possible in django? Like without sending requests to the server it updates in the browser itself

  • @rutviktak716
    @rutviktak716 4 года назад +24

    Got my day started by completing this small project 😃
    And it feels so good now 😊

  • @l4m5
    @l4m5 4 года назад +5

    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

    • @DennisIvy
      @DennisIvy  4 года назад +1

      Thanks amazing to hear! I’m honored to hear that my tutorials were able to help you with that :)

  • @triders
    @triders 4 года назад +6

    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!

    • @DennisIvy
      @DennisIvy  4 года назад +1

      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.

    • @triders
      @triders 4 года назад +1

      @@DennisIvy I'm living now in Saint-Petersburg, but I was born in Naberezhniye Chelny (Набережные Челны).

    • @DennisIvy
      @DennisIvy  4 года назад +1

      Saint-Petersburg is a beautiful city :) My wife and I might visit next summer, Last time was 2014.

  • @charlesbovalis6591
    @charlesbovalis6591 2 года назад +2

    Dennis, not only this RUclips 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.

  • @joelmiruni8660
    @joelmiruni8660 4 года назад +4

    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.

  • @garyarellano4166
    @garyarellano4166 4 года назад +8

    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

    • @KevinTempelx
      @KevinTempelx 4 года назад +1

      Are you still going at it?

    • @darkistgrx5511
      @darkistgrx5511 4 года назад

      @@KevinTempelx this if possible any progress updates mate?

  • @farhansaikh1312
    @farhansaikh1312 2 года назад

    Thanks a lot ! I have now all the basic understanding to build a complete site

  • @samuelmontypython8381
    @samuelmontypython8381 3 года назад +7

    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 👍

  • @frikkievandermerwe
    @frikkievandermerwe 4 года назад +8

    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!

  • @evenmonk6374
    @evenmonk6374 4 года назад

    Денис, замечательный английский.
    Спасибо за тутор, подписался

  • @parthmittal5625
    @parthmittal5625 3 года назад +1

    Thank you for the easy yet helpful tutorial! ✨

  • @ishitamahajan781
    @ishitamahajan781 4 года назад +1

    Thank you so much : ) For a beginner in Django like me this was the perfect starting point.

  • @jayshree9037
    @jayshree9037 4 года назад +3

    Thanks man I was designing the prototype and I felt really stuck. This is a savior

  • @mabeleain3320
    @mabeleain3320 Год назад

    Thanks Dennis, your tutorials are really helpful for me!!!

  • @bertrandfossung1216
    @bertrandfossung1216 4 года назад

    Thanks Denis. This tutorial just gave me a head start into app building. I hope to learn from you as I move along.👍

  • @syrgakomuraliev
    @syrgakomuraliev 4 года назад

    Еее бой, все так просто объяснил. Недавно оставил на английском комент к твоему последнему видео, всегда думал - имя такое, сто пудов говорит на русском, но такой свободный английский, что аж засомневался

  • @DennisIvy
    @DennisIvy  5 лет назад +36

    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

    • @ardabili
      @ardabili 3 года назад

      hai dennis, i love your channel. after we create this app, what your recommend to the next app?

  • @kasimshobak3281
    @kasimshobak3281 4 года назад

    Thank you Dennis for the informative content! Please keep up teaching Django through projects.

  • @xiaoli3878
    @xiaoli3878 4 года назад

    Great tutorial! You make things easy to understand, which is really helpful for beginners like me. Thank you!

  • @rayganmudberry375
    @rayganmudberry375 5 лет назад +2

    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.

  • @milespearce
    @milespearce Год назад

    This is an incredibly helpful tutorial. Thanks so much!

  • @alexandermendoza3424
    @alexandermendoza3424 9 месяцев назад

    Hi Ivy, me gusto mucho tu curso, felicitaciones

  • @carterbrown2864
    @carterbrown2864 3 года назад

    Thanks for making this vid! Very informative and helpful for a beginner like myself.

  • @fabaddd
    @fabaddd 4 года назад +1

    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 ♥

  • @muhammadusmanghani4992
    @muhammadusmanghani4992 4 года назад

    best video on django so far

  • @mateoscarafia5110
    @mateoscarafia5110 4 года назад +4

    nice, didnt know django was so powerfull...its like laravel but with python! cooll

    • @DennisIvy
      @DennisIvy  4 года назад

      Yes you can do a lot with django :)

    • @Nicolae_163
      @Nicolae_163 4 года назад

      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.

    • @eduardolucas391
      @eduardolucas391 4 года назад

      @@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.

  • @trungthanh4134
    @trungthanh4134 4 года назад

    Thank you! I hope you could make more videos like this.

  • @eduardolucas391
    @eduardolucas391 4 года назад

    Superb! Congratulations on your wonderful tutorial.

  • @charlesbovalis6591
    @charlesbovalis6591 2 года назад

    Dennis, once again you ROCK !!!!!!!

  • @rakkaalhazimi3672
    @rakkaalhazimi3672 4 года назад +2

    Nice tutorial, I'm way more faster learning Django through your videos.

  • @nand2494
    @nand2494 4 года назад +4

    12:18 gotta leave it here, will come back later :)

  • @almazabd8175
    @almazabd8175 4 года назад

    Thanks! A separate example for forms inline would be very much in demand as tutorial.

    • @DennisIvy
      @DennisIvy  4 года назад

      Are you referring to "Inline formsets"

    • @almazabd8175
      @almazabd8175 4 года назад

      Hi @@DennisIvy ! Yes I mean Inline formsets.

  • @vicentecfn
    @vicentecfn 4 года назад

    Great stuff for beginners. Your channel is awesome

  • @shohjahonmirakov8520
    @shohjahonmirakov8520 4 года назад

    Thanks Mr Dennis lvy for best and useful videos 👌

  • @kaleshbiju6753
    @kaleshbiju6753 2 года назад

    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.

  • @simpsonkamonere3926
    @simpsonkamonere3926 2 года назад

    Brilliant stuff, easy to follow

  • @srilankaninjapan
    @srilankaninjapan 3 года назад

    Thank you, I had fun doing this.

  • @aditiparashar9171
    @aditiparashar9171 Год назад

    Clear and simple

  • @KidsShortStoriez
    @KidsShortStoriez 4 года назад

    Hey Hi Dennis, really like the approach and way you did this from scratch..thanks a lot,, subscribing you Guru 🙏🏽 from India

  • @keerthiakula6465
    @keerthiakula6465 4 года назад +1

    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

  • @yusufahmed6944
    @yusufahmed6944 4 года назад

    Thumbs up for easy section access

  • @erkebulanduishenaliev5506
    @erkebulanduishenaliev5506 3 года назад

    Thanks, bro for the video! A really helpful video.

  • @ashoksingh3407
    @ashoksingh3407 4 года назад +2

    Thank you for making this video.

    • @DennisIvy
      @DennisIvy  4 года назад

      My pleasure Ashok :)

  • @stephenchege
    @stephenchege 3 года назад

    Awesome Tutorial ....Thank you

  • @namelesevil1
    @namelesevil1 Год назад

    Well explained everything

  • @pj7546
    @pj7546 4 года назад

    I am new to this guys channel and its LIT ! you just got asubscriber

    • @DennisIvy
      @DennisIvy  4 года назад

      Appreciated :)

    • @pj7546
      @pj7546 4 года назад

      @@DennisIvy I have a question Should I learn HTML CSS and Javascript (Front end) then go to Django or backend in general

  • @AI4Productivity
    @AI4Productivity 4 года назад

    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.

  • @brightnwachukwu7581
    @brightnwachukwu7581 4 года назад

    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

  • @nikhilmahajan4129
    @nikhilmahajan4129 4 года назад

    great tutorial dennis

  • @saolgoal3700
    @saolgoal3700 3 года назад

    Perfect refresher for Django

  • @MrYoklmn
    @MrYoklmn 5 лет назад

    Крутой видос. Спасибо. Про аутентификацию и чат буду ждать видосы)

  • @prateekarora4549
    @prateekarora4549 4 года назад

    Nice. You really did a great job!

  • @sandeepvarmac
    @sandeepvarmac 4 года назад

    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?

  • @tektalk4kids
    @tektalk4kids 3 года назад

    ABSOLUTELY AN AWESOME VIDEO

  • @RishiSaikia
    @RishiSaikia 3 года назад

    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?

  • @victormungai
    @victormungai 3 года назад +2

    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.

    • @victormungai
      @victormungai 3 года назад +1

      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.

    • @rashidaliev9460
      @rashidaliev9460 3 года назад +1

      @@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!

  • @craigphollingsworth1460
    @craigphollingsworth1460 3 года назад

    this is excellent. Thank you!

  • @ivanromanov7120
    @ivanromanov7120 2 года назад

    Hello Dennis! Great video! Maybe you can tell me how to make a model for creating a task template and share such a template? that is, for example, I create the task "lorem Ipsum" and put it in a conditional separate place, from where I can share this task with another user, and he will copy it to himself and put on your stack.
    Did you have idea? Google didn't help me...((

  • @KiranRoy
    @KiranRoy 3 года назад

    I updated the code with if else,
    here it is. Still have the error
    "Cannot filter a query once a slice has been taken."
    Here is the modified code -
    def get_context_data(self, **kwargs):
    context = super().get_context_data(**kwargs)
    search_input = self.request.GET.get('search-area') or ''
    if 's' in search_input:
    # if search_input:
    context['instances'] = context['instances'].filter(
    Q(instance_name__icontains=search_input) |
    Q(instance_id__icontains=search_input) |
    Q(instance_type__istartswith=search_input) |
    Q(public_ip__icontains=search_input) |
    Q(private_ip__icontains=search_input) |
    Q(instance_state__icontains=search_input) |
    Q(region__icontains=search_input)
    )
    context['search_input'] = search_input
    return context
    else:
    context = super().get_context_data(**kwargs)
    ins = Instances.objects.all()
    paginator = Paginator(ins, self.paginate_by)
    page = self.request.GET.get('page')
    try:
    ins_per_page = paginator.page(page)
    except PageNotAnInteger:
    ins_per_page = paginator.page(1)
    except EmptyPage:
    ins_per_page = paginator.page(paginator.num_pages)
    context['instances'] = ins_per_page
    return context

  • @KSals
    @KSals 4 года назад

    Keep up the great work man!

  • @Vee_Vaa
    @Vee_Vaa 4 года назад +1

    @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?

    • @doockathefinanceguy
      @doockathefinanceguy 3 года назад

      I'm having the same issues. Just scrolling through the comments to see if anyone has found any solution for this issue

  • @harwinderthakur9708
    @harwinderthakur9708 4 года назад

    just subscribed. Great tutorial Thanks

  • @tanaysheth8601
    @tanaysheth8601 3 года назад

    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.

  • @aniketghosh1867
    @aniketghosh1867 4 года назад

    nice video and excellent explanations

  • @MagicianSaransh
    @MagicianSaransh 3 года назад

    Man loved this ❤️🙏

  • @gymnopedies7
    @gymnopedies7 4 года назад +1

    you're my teacher. thx

  • @louissmith4024
    @louissmith4024 4 года назад +2

    Around 15:03, I have the for loop set up but the actual tasks don't show on the todo list. Any suggestions?

    • @Safactamas
      @Safactamas 3 года назад

      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
      }

  • @faustiekay6517
    @faustiekay6517 4 года назад

    Thankyou so much! It was very helpful! :)

  • @o00o00o00
    @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

  • @parthkhandelwal3781
    @parthkhandelwal3781 7 месяцев назад +1

    The tutorial is good, but it gets confusing tbh, around create item. The confusing part is the approach it follows first method = post in list.html then the if statement in views. Was doing this before learning the basics of django. SO FOR ANYONE WATCHING THIS, DO LEARN THE BASICS OF DJANGO FIRST.

  • @zenoboi6162
    @zenoboi6162 4 года назад

    Thanks a lot man! Good Tutorial

  • @tolualimi1
    @tolualimi1 4 года назад

    Let's say for the delete functionality, you would not like to redirect to another page for confirmation, how would your code change?

  • @mezgoodle
    @mezgoodle 4 года назад +1

    Instead of .btn-danger you can use .btn-warning
    And what about styling update_task.html and delete.html?

    • @DennisIvy
      @DennisIvy  4 года назад +3

      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.

  • @dgrigorev
    @dgrigorev 4 года назад +2

    Спасибо! Отличное видео

    • @DennisIvy
      @DennisIvy  4 года назад

      пожалуйста :)

  • @munenemuondu1033
    @munenemuondu1033 3 года назад

    Nice JOB.👍

  • @devanshsolani2593
    @devanshsolani2593 4 года назад

    Amazing tutorial

  • @maazshahid8920
    @maazshahid8920 4 года назад

    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

  • @VietNguyen-hz1mf
    @VietNguyen-hz1mf 4 года назад

    Can you please show us how to use bootstraps and implement it in this project ?

  • @Abhi-kp1fs
    @Abhi-kp1fs 3 года назад

    Thank you so much brother!

  • @arvindg553
    @arvindg553 4 года назад +1

    Why all tutorials forget/don't use .(period) after app name
    Django-admin startproject todo .

  • @shohjahonmirakov8520
    @shohjahonmirakov8520 3 года назад

    Good job! Thanks bro!

  • @goodtime8007
    @goodtime8007 3 года назад

    Min 41:13 only get the submit button without title, with withe rectangle and complete

  • @jasperzanjani
    @jasperzanjani 4 года назад +4

    17:00 wait a minute.. you import forms from django.. and then you import ModelForm from django.forms??

    • @diegorapoport2526
      @diegorapoport2526 4 года назад

      I just saw it and I'm like WHAAAAATTT????

    • @animeshsingh4290
      @animeshsingh4290 4 года назад

      Doesn't really matter, you can do just do the later thing or both

    • @jasperzanjani
      @jasperzanjani 4 года назад

      @@animeshsingh4290 details matter

  • @accepted5856
    @accepted5856 4 года назад

    Great... Please make a video on Instagram clone using django

  • @faresgeek-dz5692
    @faresgeek-dz5692 5 лет назад +2

    Wow thanks
    Could you please make a simple Django social network
    (Ex: Instagram, Twitter ..etc clone)
    Adding Vue + vuetiffy would be a great plus

    • @DennisIvy
      @DennisIvy  5 лет назад +4

      On my "To do list" ;) lol. It's gonna be 1 of about 5 more projects I'll be releasing in the coming months.

    • @faresgeek-dz5692
      @faresgeek-dz5692 5 лет назад +1

      @@DennisIvy thanks

    • @zorojuro5106
      @zorojuro5106 5 лет назад +2

      awesome. please do :)

    • @rezan6971
      @rezan6971 4 года назад +1

      @@DennisIvy that would be great. actually, a todo app (restapi) with react front end would be enough for me. I know front end and to some extent backend with templates but it's rest APIs that get me confused.

  • @heltonteixeira8880
    @heltonteixeira8880 3 года назад

    nice project, this wiil help me a lot :)

  • @hafeezpp
    @hafeezpp 4 года назад

    Great Video. Love from india

  • @somnvm37
    @somnvm37 2 года назад

    Will this video work for the new 4.0 django?

  • @arihantjainajbil8182
    @arihantjainajbil8182 2 года назад

    Hello sir
    I am getting this when i print the 2 task which you printed
    To Do List
    Task object (1)
    Task object (2)

  • @york0014
    @york0014 2 года назад

    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.

  • @АлександрКотов-ц7л
    @АлександрКотов-ц7л 4 года назад

    its so beautiful! Thanks you

  • @amannegi8256
    @amannegi8256 3 года назад

    do we have to create superuser for every new project

  • @wevertonsantiago4305
    @wevertonsantiago4305 3 года назад

    You help me so much! Thanks very much! New subs here \o/ thanks again.

  • @virajsaiya3653
    @virajsaiya3653 4 года назад

    Hi Dennis I did not understood the dynamic urls at 23:41 could you explain or give any reference .

  • @TheCapture06265
    @TheCapture06265 4 года назад

    Well Explained Dennis. Great Job. But, I can't delete items (unable to get submit button after clicking on delete)