Use Django to Create a Todo List App

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ต.ค. 2024

ความคิดเห็น • 190

  • @prettyprinted
    @prettyprinted  4 ปีที่แล้ว +2

    Join my free course on the basics of Django: prettyprinted.com/introdjango

  • @camelcasesprogramming992
    @camelcasesprogramming992 4 ปีที่แล้ว +2

    I was making a ToDo app and was stuck at the database part, but you removed my problems flawlessly and yes, Your video duration is perfect ! sometimes long duration videos just are boring but yours was just perfect, i have no words to say ! THANK YOU VERY MUCH !
    Hoping to see more videos like this 🤩

  • @error0803
    @error0803 2 ปีที่แล้ว +1

    Hi Anthony, your Django playlist is frickin' awesome, can't wait to complete all of it. Thanks a lot🙏🏻

  • @thegreenroom5820
    @thegreenroom5820 4 ปีที่แล้ว +1

    I watch a lot of Django content. But your teaching style is stellar. I will join your website as soon as I Finnish my current set of udemy Django courses.

  • @GiantsOnTheHorizon
    @GiantsOnTheHorizon 4 ปีที่แล้ว

    As usual, great job on this course Anthony!!

  • @hamzabouk5982
    @hamzabouk5982 5 ปีที่แล้ว

    Perfect djano explanation in 30 min def subscribing

  • @bhavikakapadia2462
    @bhavikakapadia2462 6 ปีที่แล้ว

    I have been searching for Django tutorial for so long.finally I found Django 2.0
    Can't wait to start learning.

  • @Taziamoma
    @Taziamoma 4 ปีที่แล้ว +1

    This was beautifully done. This was my first django app and I was really easy to understand and follow, great job!

  • @ayushiagarwal6996
    @ayushiagarwal6996 ปีที่แล้ว

    This was the best video so far on django!

  • @cooleekova
    @cooleekova 2 ปีที่แล้ว

    Hi Anthony, thanks a lot for this video and for all of your job🙏🏻 I am a big fan ☺

  • @hireath8805
    @hireath8805 6 ปีที่แล้ว

    its truth that you are a very good teacher please upload more project of django

  • @phillipdane7852
    @phillipdane7852 5 ปีที่แล้ว +1

    Great videos, thank you! I second another comment for taking a brief pause in between key steps. That time is crucial for letting the concepts sink (especially when hopping between a template, view, urls, and ultimately testing in the browser).

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว

      I'll consider that for future videos. Thanks for the feedback.

  • @fahimhasnainfahad6637
    @fahimhasnainfahad6637 6 ปีที่แล้ว +1

    Probably best todo app on django. Keep on going man

  • @omerzaa79
    @omerzaa79 6 ปีที่แล้ว

    Amazing, Pretty Printed u rocks. you removed the confusion part of django. i have seen lot of tuts but u are great. Django can easily confuse u but still is very simple

  • @tarat.techhh
    @tarat.techhh 4 ปีที่แล้ว

    Thank you so much!!!
    I am really blessed to have tutorials for free from guys like you and sentdex..

  • @santanasta82
    @santanasta82 6 ปีที่แล้ว +5

    Perfect! You are great! Congratulations for your videos! You are objective, you go direct to the point! So, your videos have a good duration! I have one suggestion: For each video you create, you could create another video just talking about the tests for the code you used. For example, this video above would have another video that you talk about the tests. I think a second video is good because if it was only one video it would be very long. And you can focus only on the code to make things work, leaving the tests code to the second video.

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว +3

      Hey Bruno, that's a good idea. I've been thinking about how to incorporate tests into the videos. I'll see what I can do about that.

  • @Regina.Clarke
    @Regina.Clarke 4 ปีที่แล้ว

    Very good job; I will try this out! I just tried a different tutorial on a todo app, but this adds many features that would be great to learn! I’m now a subscriber!

  • @MeganeFosteryukina
    @MeganeFosteryukina 4 ปีที่แล้ว

    This is exactly what I was searching , thank you

  • @ajalasegun1
    @ajalasegun1 6 ปีที่แล้ว +10

    Thanks man! You're such a good tutor.

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      You're welcome! Thanks for watching.

  • @placideirandora7405
    @placideirandora7405 5 ปีที่แล้ว +1

    Thank you very much for this productive tutorial. It has really improved my Python Django skills! You're such a good tutor. Everything was explained clearly.

  • @mateusguimaraesalves3852
    @mateusguimaraesalves3852 3 ปีที่แล้ว

    Very, very and very good buddy! Congratulations and thank you! Success for you!

  • @bijoysaraf650
    @bijoysaraf650 4 ปีที่แล้ว

    Well explained! Very clear and succinct.
    Thank you.

  • @johnswire74
    @johnswire74 5 ปีที่แล้ว

    Thanks for this and your other Django tutorials Anthony - I really appreciate your work.

  • @yifus237
    @yifus237 4 ปีที่แล้ว

    Just want to let you know your work is a great help to me! Thank you so much!

    • @prettyprinted
      @prettyprinted  4 ปีที่แล้ว

      You're welcome! Thanks for watching!

  • @kratosboi1236
    @kratosboi1236 4 ปีที่แล้ว

    really easy and nice tutorial....thank you

  • @nancychaudhry3623
    @nancychaudhry3623 3 ปีที่แล้ว

    Another really great video!

  • @kevinochieng5625
    @kevinochieng5625 4 ปีที่แล้ว

    Wonderful Tutorial man, thanks a bunch

  • @keerthanaprakash5032
    @keerthanaprakash5032 4 ปีที่แล้ว

    Great video! Great explanations! Thank you so much

  • @safimasood6116
    @safimasood6116 4 ปีที่แล้ว

    Thanks for such a wonderful tutorial

  • @JoseGarcia-lw8gf
    @JoseGarcia-lw8gf 5 ปีที่แล้ว

    Thanks, I'm new to Django, but this tutorial is an excellent beginnig.Great job, I appreciate it!

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว

      You're welcome. Thanks for watching!

  • @sanfarans
    @sanfarans 3 ปีที่แล้ว

    Guess I'm late, but I have a question.
    What would it take to make this app unique for each user? Currently it looks the same for everyone visiting the site and I would want each user to have their personal, private list.
    Is there a way to make it in Django without implementing whole user authentication stuff?

  • @ДмитрийШелухин-н7й
    @ДмитрийШелухин-н7й 4 ปีที่แล้ว

    Many thanks you for all of you do.

  • @recepozturk6711
    @recepozturk6711 5 ปีที่แล้ว

    Thanks for your effort.. Its exactly a great tutorial for a short time.

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว

      You're welcome! Thanks for watching!

  • @АлексейАвдеев-ж2е
    @АлексейАвдеев-ж2е 4 ปีที่แล้ว

    I think, couple of things left unsaid. What if save or delete methods raise an error? What if submitted form appears to be not valid?

  • @mscgeoinformatics
    @mscgeoinformatics 4 ปีที่แล้ว

    Hi. Thanks for the tutorials.
    The forms I have created doesn't align properly.
    Do I need to modify the index.html which I had downloaded from your git repository.
    The file content is same as that of your model.
    Still the form is not aligned, and the Todo list is not visible.
    Similar thing had happened in case of the first tutorial too

  • @mathewsjose1990
    @mathewsjose1990 6 ปีที่แล้ว

    Awesome Video ... Subscribed ..Keep up the good work .

  • @akshayabaskaran9983
    @akshayabaskaran9983 5 ปีที่แล้ว

    Thank you so much for the awesome work. Best explanation ever :)

  • @jamikhabir492
    @jamikhabir492 5 ปีที่แล้ว

    Hi! great video!.. You are very detailed and thorough! 28:22 The color does not change when I use the "list-group-item" command in css. Could you inform me of anything i'm doing wrong?

  • @vigneshks1948
    @vigneshks1948 6 ปีที่แล้ว +3

    Thanks for the tutorial, pretty printed..Learning a lot,will there be a tutorial on django rest framework in future with real examples?

  • @theweirdemployee
    @theweirdemployee 6 ปีที่แล้ว

    Great tutorial mate! best django youtuber out there! I only have one question. please :( im really having a hard time on the primary key. Is "todo_id" the default id for django? if it is. why is it throwing an error in my views. thank you so much! I will really appreciate any answers.

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      The default id will always be just 'id'. Normally you use something like todo_id when you are using it as a foreign key in another table.

  • @vdfam
    @vdfam 6 ปีที่แล้ว +1

    Thanks for the video. I think we can save what we did today or yesterday. And at weekend we can export list what we did for a week (month, year).

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      That's a good idea for a feature for the app.
      Thanks for watching.

  • @jorgegutierrez-fr1ub
    @jorgegutierrez-fr1ub 5 ปีที่แล้ว

    very useful video...I learned a lot...good job

  • @VinodGouda
    @VinodGouda 6 ปีที่แล้ว

    Awesome video on Django 2.0 and Python 3.

  • @madeerwinardiantha6699
    @madeerwinardiantha6699 6 ปีที่แล้ว

    Thanks for your awesome explanation on the video. I became more understand with Django (y)

  • @mzgz4216
    @mzgz4216 6 ปีที่แล้ว

    anthony . thx for this tut , where do you host your pretty printed website ?? and whats the price for monthly or yearly plans ??

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      I use a service called Teachable. It costs $100 a month.

  • @fideloruko4160
    @fideloruko4160 5 ปีที่แล้ว

    Thanks again Antony, but i'm kind of stuck .My loop in if else doesn't sync with the completed like
    yours where i'm i going wrong your i mean they all look the same completed ones are not canceled.

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว +1

      It's really hard to say without seeing what you're doing, but make sure there are no hidden errors anyway. Take a look at the console and try messing around with the if statement to make sure it's actually being executed.

  • @themindstorm9947
    @themindstorm9947 6 ปีที่แล้ว

    Hi, I had a question about Django and database migrations. How do you update a model? For instance, if I create a model, migrate it to the database, then decide to add another field, what is the easiest way to update the table and make the changes?

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      You just have to make the migrations and again and run migrate.

  • @Varmasangaraju4444
    @Varmasangaraju4444 5 ปีที่แล้ว

    Thanks for the tutorial. Please can you make video on how users can login and make their own Todo list(one user should not have access to other users todo list)

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว +1

      That's a good idea. I'll consider that. Thanks.

  • @K-IT-SubhanshiRawat
    @K-IT-SubhanshiRawat 4 ปีที่แล้ว

    does this code use the concept of linked lists?

  • @rbmdesenvolvimento
    @rbmdesenvolvimento 4 ปีที่แล้ว

    Very good, thank you!

  • @saadimelek6653
    @saadimelek6653 4 ปีที่แล้ว

    can i use simple form ? from html without form.py ?

  • @ahmedsamra1320
    @ahmedsamra1320 5 ปีที่แล้ว

    i am happy during learning that thank you

  • @satisharvapalli3457
    @satisharvapalli3457 6 ปีที่แล้ว

    Hey very much thank full to you Anthony. your videos r a lot to me.

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว +1

      You're welcome! Thanks for watching.

  • @abigailorone3153
    @abigailorone3153 6 ปีที่แล้ว

    hey Anthony. where did u get the base file that has index and static?

  • @moinguys
    @moinguys 6 ปีที่แล้ว

    Thank you for the video. When you implement links like this than you are redirected to this page after the database is changed. However, you are redirected at the start of the site (but maybe I was doint something at the bottom). I used anchors in order to direct the user to the appropriate place. Is there a better way to do this? I need to use javascript in order to achieve this, don't I?

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว +1

      If you want to have a true single page app where you don't actually load new pages or refresh the entire page, then you'll need to use JavaScript instead of regular anchor links.

  • @md.shohanhossain1375
    @md.shohanhossain1375 6 ปีที่แล้ว

    Very much informative

  • @Tony-tu8uz
    @Tony-tu8uz 6 ปีที่แล้ว

    Hello, Anthony! thank U for your videos! they are like clean water in the dessert!
    can You explain what do you mean under 'Client side staff' on 23:35, by which we can avoid reloading a page?

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      You can use things like jQuery, React, Vue, Angular, plain JavaScript, etc to change parts of the page without reloading it.

  • @vickneshg1053
    @vickneshg1053 6 ปีที่แล้ว

    Amazing work hats off u man ☺☺☺☺☺☺☺

  • @ImmediatelyLeaveYT
    @ImmediatelyLeaveYT 3 ปีที่แล้ว

    thank you so much!!

  • @ncegamncedicbayana9912
    @ncegamncedicbayana9912 6 ปีที่แล้ว

    Hi , on my index page i am failing to get the list of the todo activities.

  • @vladvald864
    @vladvald864 5 ปีที่แล้ว

    You could have get the todolist from ToDoIst app, it would be more interesting. But anyway this video deserves like!

  • @kubafabisiak1711
    @kubafabisiak1711 6 ปีที่แล้ว

    Yeah, you're doing great job! Thanks for this kind of stuff :)

  • @DanielRodriguez-eh4rt
    @DanielRodriguez-eh4rt 6 ปีที่แล้ว

    Could you tell me which text editor are you using?, please

    • @Banydian
      @Banydian 6 ปีที่แล้ว

      Thanks!

  • @drcod3r329
    @drcod3r329 6 ปีที่แล้ว +1

    why u arent work with dark theme i barley can c the file names

  • @xtremehackerzpro9511
    @xtremehackerzpro9511 6 ปีที่แล้ว

    Nice video, you can use also new_todo = Todo(text=form.cleaned_data['text']) which is much safer... ModelForm is a more easiest way to create form from a model.

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว +1

      Yeah, you're right. I had a brain fart when I did that.
      As for modelform, I released a video on that today.

  • @Quantum-o5f
    @Quantum-o5f 4 ปีที่แล้ว

    Thank u very much, dude!

    • @prettyprinted
      @prettyprinted  4 ปีที่แล้ว

      You're welcome! Thanks for watching.

  • @mxt1201
    @mxt1201 6 ปีที่แล้ว

    Great job!

  • @anky137339
    @anky137339 5 ปีที่แล้ว

    Hello , can I use Mongo DB with Django , already have Collections in Mongo, want to query the Collections and give results to user in Django FE. Will take input from user from Django FE --> run query from Mongo Aggregations--> display result in Django FE

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว

      Yes, you can use Mongo with Django. I plan on making videos how to do so soon.

    • @anky137339
      @anky137339 5 ปีที่แล้ว

      @@prettyprinted thanks a lot

  • @tejugavi7471
    @tejugavi7471 6 ปีที่แล้ว

    Awesome video ever seen. Long Way to go.

  • @tahseenrahman2922
    @tahseenrahman2922 6 ปีที่แล้ว

    Hey.. I was wondering of undoing the completed task. I tried a something but it didn't work. Can you help with it?

    • @tahseenrahman2922
      @tahseenrahman2922 6 ปีที่แล้ว

      What I mean is if I click on a completed task, it should again go to uncompleted form. I hope you understand. (opposite of what's happening when we mark a task as complete.)

    • @thehoneybadger1995
      @thehoneybadger1995 6 ปีที่แล้ว

      What have you tried? I managed to do it by always having a link around the list items, and setting the completion status to the opposite (False -> True, and True -> False) in the view.

  • @PakelisViniu
    @PakelisViniu 6 ปีที่แล้ว +1

    Hello,
    I am getting "Reverse for 'add' not found. 'add' is not a valid view function or pattern name." error once I try to access server to index.html. What could be the problem?

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      Did you add the name on the url in your urls.py?

    • @carolinaochoa4575
      @carolinaochoa4575 6 ปีที่แล้ว

      Write instead of {% url 'add' %} {% url 'todo:add' %} the last way worked for me.

  • @nylukkulyn8498
    @nylukkulyn8498 6 ปีที่แล้ว

    Hi Anthony! Thanks for this tutorial, so far perfectly clear and useful. I have a question though: why do you have localhost:8000/add when you show the behaviour of the @require_POST? shouldn't it be localhost:8000/todo/add according with the urls(dot)py that we have?

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      In the path that points to the todo.urls.py, I'm not matching against todo in the endpoint, so I can use /add.

    • @nylukkulyn8498
      @nylukkulyn8498 6 ปีที่แล้ว

      You're right, I thought you had it the other way, sorry. Another question: what if you don't want to delete unless you hit the button, I mean not trough typing in the url directly in the browser, is there any special require that could do that?

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      If you restrict the view for delete to POST and use a form submit when you click the button, you can do it. Another option is using an AJAX call from JavaScript when the button gets clicked.

  • @SunCheeez
    @SunCheeez 6 ปีที่แล้ว

    @Pretty Printed Exception Value:
    Reverse for 'complete' with arguments '(1,)' and keyword arguments '{}' not found. 1 pattern(s) tried: ['complete/']
    Please, help

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      Did you pass the item id with the complete argument in the reverse function?

  • @KokoKoko-hz9cd
    @KokoKoko-hz9cd 5 ปีที่แล้ว

    Nice men. Thanks so much !

  • @shahidullahmiazi
    @shahidullahmiazi 5 ปีที่แล้ว

    Please, edit this app and add herewith "Task history". User may find out previous Task by clicking date. Thanks.

  • @victorkeynote6301
    @victorkeynote6301 6 ปีที่แล้ว

    in the completeTodo part when i click an item on todo list instead of the item getting completed i get an error, 'value error, The view todo.views.completeTodo didn't return an HttpResponse object. It returned None instead.'

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      Every view function must have a return statement at the end that returns something like HttpResponse or render.

  • @shafinhaque2179
    @shafinhaque2179 5 ปีที่แล้ว

    Hi, Do you have a course on django in Udemy ?

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว

      No, I only have courses on my site: courses.prettyprinted.com

  • @okprogrammer
    @okprogrammer 6 ปีที่แล้ว +5

    please also tells about the basic stuffs . Like adding template and static files

  • @vickneshg1053
    @vickneshg1053 6 ปีที่แล้ว

    Cannot found bs/js/jquery.min.js
    And bs/js/bootstrap.min.js........anyone help me to solve this problem

  • @sudipsingh1188
    @sudipsingh1188 6 ปีที่แล้ว

    Understood a lot of concepts.....nyc

  • @absarbhutta638
    @absarbhutta638 2 ปีที่แล้ว

    Make a video on class base views

  • @VinodGouda
    @VinodGouda 6 ปีที่แล้ว

    I am looking for video on Django 2.0 i.e Same example with Ajax calls instead of forms.

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      I'll probably cover that soon.

    • @VinodGouda
      @VinodGouda 6 ปีที่แล้ว

      Pretty Printed thanks.

  • @AngelTaylorgang809
    @AngelTaylorgang809 6 ปีที่แล้ว

    the AddTodo function got me so confused :( 22:50 , excellent video thought :D

  • @carolinaescobar4763
    @carolinaescobar4763 4 ปีที่แล้ว

    what is my username when i try to log into admin? the email we created with the superuser?

    • @celloucisse7548
      @celloucisse7548 4 ปีที่แล้ว

      log in with your username that you entered at the beginning when you executed the commands: python manage.py createsuperuser

    • @celloucisse7548
      @celloucisse7548 4 ปีที่แล้ว

      like Username (leave blank to use 'dell'): admin
      admin is my Username

  • @ytlagu2010
    @ytlagu2010 5 ปีที่แล้ว

    Greate stuff

  • @lofilife4325
    @lofilife4325 6 ปีที่แล้ว

    26:24 my form isn't working. I can't see any result on the terminal

  • @SunCheeez
    @SunCheeez 6 ปีที่แล้ว

    How to write a test for this todo app?

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      I'll cover that in a future video.

  • @dopeking2355
    @dopeking2355 5 ปีที่แล้ว

    thanks man

  • @saharamanson1970
    @saharamanson1970 4 ปีที่แล้ว

    Awesome.............

  • @mosemulondo6524
    @mosemulondo6524 6 ปีที่แล้ว

    That was cool

  • @bhismaosti7949
    @bhismaosti7949 5 ปีที่แล้ว

    Please, provide me a template . I have not found.

    • @fideloruko4160
      @fideloruko4160 5 ปีที่แล้ว

      located in github link then download zip

  • @ghazalehrezanavaz9712
    @ghazalehrezanavaz9712 4 ปีที่แล้ว

    👏🏼👏🏼👏🏼👏🏼👏🏼

  • @sarthaksrivastava927
    @sarthaksrivastava927 5 ปีที่แล้ว +1

    cool

  • @LF-ro7nk
    @LF-ro7nk 6 ปีที่แล้ว

    What the command prompt?

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      The thing you use to run commands like python filename.py.

  • @lofilife4325
    @lofilife4325 6 ปีที่แล้ว

    hello anybody help please !! reverse for 'complete' with argument'(1') not found. 1 pattern() tried

    • @shadow-yj3km
      @shadow-yj3km 4 ปีที่แล้ว

      href="{% url 'complete' todo_id=Todo.id %}

    • @shadow-yj3km
      @shadow-yj3km 4 ปีที่แล้ว

      @Rishabh Mishra href="{% url 'complete' todo_id=Todo.id %} hope this may work..

  • @nikhilbhardwaj6055
    @nikhilbhardwaj6055 5 ปีที่แล้ว

    that was really amazing but why don't you use Generic Views

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว

      Just wanted to keep it simple for the example.

  • @dodokwak
    @dodokwak 6 ปีที่แล้ว +2

    even without JS!

  • @roney6562
    @roney6562 2 ปีที่แล้ว

    thakyou

  • @ИльяФедоров-к4ц
    @ИльяФедоров-к4ц 3 ปีที่แล้ว

    Good job! Thanks a lot! But I want you to stop for some seconds after you stop edit code - need some time to take a pause and edit my own code. Thanks!

  • @manuelpascual7063
    @manuelpascual7063 5 ปีที่แล้ว

    Can you explain this app the same way you did it but using class-based views?? Or at least reply this comment! THANX!

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว

      I can do that. Thanks for the idea.