Use Django to Create a Todo List App

  Рет қаралды 68,904

Pretty Printed

Pretty Printed

Күн бұрын

Пікірлер: 190
@prettyprinted
@prettyprinted 4 жыл бұрын
Join my free course on the basics of Django: prettyprinted.com/introdjango
@camelcasesprogramming992
@camelcasesprogramming992 4 жыл бұрын
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 🤩
@thegreenroom5820
@thegreenroom5820 4 жыл бұрын
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.
@error0803
@error0803 2 жыл бұрын
Hi Anthony, your Django playlist is frickin' awesome, can't wait to complete all of it. Thanks a lot🙏🏻
@ayushiagarwal6996
@ayushiagarwal6996 Жыл бұрын
This was the best video so far on django!
@fahimhasnainfahad6637
@fahimhasnainfahad6637 6 жыл бұрын
Probably best todo app on django. Keep on going man
@prettyprinted
@prettyprinted 6 жыл бұрын
Thanks, I appreciate it!
@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.
@prettyprinted
@prettyprinted 6 жыл бұрын
Hope you like it.
@GiantsOnTheHorizon
@GiantsOnTheHorizon 4 жыл бұрын
As usual, great job on this course Anthony!!
@hamzabouk5982
@hamzabouk5982 5 жыл бұрын
Perfect djano explanation in 30 min def subscribing
@hireath8805
@hireath8805 6 жыл бұрын
its truth that you are a very good teacher please upload more project of django
@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?
@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!
@Taziamoma
@Taziamoma 4 жыл бұрын
This was beautifully done. This was my first django app and I was really easy to understand and follow, great job!
@santanasta82
@santanasta82 7 жыл бұрын
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 7 жыл бұрын
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.
@phillipdane7852
@phillipdane7852 5 жыл бұрын
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.
@ajalasegun1
@ajalasegun1 6 жыл бұрын
Thanks man! You're such a good tutor.
@prettyprinted
@prettyprinted 6 жыл бұрын
You're welcome! Thanks for watching.
@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
@prettyprinted
@prettyprinted 6 жыл бұрын
Glad I could help!
@cooleekova
@cooleekova 2 жыл бұрын
Hi Anthony, thanks a lot for this video and for all of your job🙏🏻 I am a big fan ☺
@MeganeFosteryukina
@MeganeFosteryukina 4 жыл бұрын
This is exactly what I was searching , thank you
@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.
@mateusguimaraesalves3852
@mateusguimaraesalves3852 3 жыл бұрын
Very, very and very good buddy! Congratulations and thank you! Success for you!
@tarat.techhh
@tarat.techhh 5 жыл бұрын
Thank you so much!!! I am really blessed to have tutorials for free from guys like you and sentdex..
@placideirandora7405
@placideirandora7405 5 жыл бұрын
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.
@АлексейАвдеев-ж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?
@kratosboi1236
@kratosboi1236 4 жыл бұрын
really easy and nice tutorial....thank you
@nancychaudhry3623
@nancychaudhry3623 3 жыл бұрын
Another really great video!
@johnswire74
@johnswire74 5 жыл бұрын
Thanks for this and your other Django tutorials Anthony - I really appreciate your work.
@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.
@bijoysaraf650
@bijoysaraf650 4 жыл бұрын
Well explained! Very clear and succinct. Thank you.
@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?
@lofilife4325
@lofilife4325 6 жыл бұрын
26:24 my form isn't working. I can't see any result on the terminal
@yifus237
@yifus237 5 жыл бұрын
Just want to let you know your work is a great help to me! Thank you so much!
@prettyprinted
@prettyprinted 5 жыл бұрын
You're welcome! Thanks for watching!
@okprogrammer
@okprogrammer 6 жыл бұрын
please also tells about the basic stuffs . Like adding template and static files
@prettyprinted
@prettyprinted 6 жыл бұрын
Will do!
@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
@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 жыл бұрын
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.
@abigailorone3153
@abigailorone3153 6 жыл бұрын
hey Anthony. where did u get the base file that has index and static?
@prettyprinted
@prettyprinted 6 жыл бұрын
Someone made it for me.
@kevinochieng5625
@kevinochieng5625 4 жыл бұрын
Wonderful Tutorial man, thanks a bunch
@vigneshks1948
@vigneshks1948 7 жыл бұрын
Thanks for the tutorial, pretty printed..Learning a lot,will there be a tutorial on django rest framework in future with real examples?
@prettyprinted
@prettyprinted 7 жыл бұрын
Yes.
@K-IT-SubhanshiRawat
@K-IT-SubhanshiRawat 4 жыл бұрын
does this code use the concept of linked lists?
@vdfam
@vdfam 7 жыл бұрын
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 7 жыл бұрын
That's a good idea for a feature for the app. Thanks for watching.
@saadimelek6653
@saadimelek6653 4 жыл бұрын
can i use simple form ? from html without form.py ?
@safimasood6116
@safimasood6116 5 жыл бұрын
Thanks for such a wonderful tutorial
@Varmasangaraju4444
@Varmasangaraju4444 6 жыл бұрын
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 6 жыл бұрын
That's a good idea. I'll consider that. Thanks.
@awfuldesigns
@awfuldesigns 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.
@xtremehackerzpro9511
@xtremehackerzpro9511 7 жыл бұрын
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 7 жыл бұрын
Yeah, you're right. I had a brain fart when I did that. As for modelform, I released a video on that today.
@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.
@drcod3r329
@drcod3r329 6 жыл бұрын
why u arent work with dark theme i barley can c the file names
@moinguys
@moinguys 7 жыл бұрын
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 7 жыл бұрын
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.
@DanielRodriguez-eh4rt
@DanielRodriguez-eh4rt 6 жыл бұрын
Could you tell me which text editor are you using?, please
@Banydian
@Banydian 6 жыл бұрын
Thanks!
@ДмитрийШелухин-н7й
@ДмитрийШелухин-н7й 4 жыл бұрын
Many thanks you for all of you do.
@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.
@ncegamncedicbayana9912
@ncegamncedicbayana9912 6 жыл бұрын
Hi , on my index page i am failing to get the list of the todo activities.
@AngelTaylorgang809
@AngelTaylorgang809 6 жыл бұрын
the AddTodo function got me so confused :( 22:50 , excellent video thought :D
@prettyprinted
@prettyprinted 6 жыл бұрын
Thanks for watching!
@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!
@mathewsjose1990
@mathewsjose1990 6 жыл бұрын
Awesome Video ... Subscribed ..Keep up the good work .
@prettyprinted
@prettyprinted 6 жыл бұрын
Thanks, I appreciate it!
@vladvald864
@vladvald864 5 жыл бұрын
You could have get the todolist from ToDoIst app, it would be more interesting. But anyway this video deserves like!
@prettyprinted
@prettyprinted 5 жыл бұрын
Thanks for watching!
@jorgegutierrez-fr1ub
@jorgegutierrez-fr1ub 5 жыл бұрын
very useful video...I learned a lot...good job
@prettyprinted
@prettyprinted 5 жыл бұрын
Thanks for watching!
@PakelisViniu
@PakelisViniu 6 жыл бұрын
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.
@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!
@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.
@absarbhutta638
@absarbhutta638 2 жыл бұрын
Make a video on class base views
@anky137339
@anky137339 6 жыл бұрын
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 6 жыл бұрын
Yes, you can use Mongo with Django. I plan on making videos how to do so soon.
@anky137339
@anky137339 6 жыл бұрын
@@prettyprinted thanks a lot
@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.
@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?
@VinodGouda
@VinodGouda 7 жыл бұрын
Awesome video on Django 2.0 and Python 3.
@prettyprinted
@prettyprinted 7 жыл бұрын
Thanks for watching!
@VinodGouda
@VinodGouda 7 жыл бұрын
I am looking for video on Django 2.0 i.e Same example with Ajax calls instead of forms.
@prettyprinted
@prettyprinted 7 жыл бұрын
I'll probably cover that soon.
@VinodGouda
@VinodGouda 7 жыл бұрын
Pretty Printed thanks.
@akshayabaskaran9983
@akshayabaskaran9983 5 жыл бұрын
Thank you so much for the awesome work. Best explanation ever :)
@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
@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
@shahidullahmiazi
@shahidullahmiazi 5 жыл бұрын
Please, edit this app and add herewith "Task history". User may find out previous Task by clicking date. Thanks.
@ibochenko
@ibochenko 6 жыл бұрын
Awesome video! Explained a lot ot me. Thank you!
@prettyprinted
@prettyprinted 6 жыл бұрын
You're welcome! Thanks for watching.
@SunCheeez
@SunCheeez 6 жыл бұрын
How to write a test for this todo app?
@prettyprinted
@prettyprinted 6 жыл бұрын
I'll cover that in a future video.
@rbmdesenvolvimento
@rbmdesenvolvimento 5 жыл бұрын
Very good, thank you!
@bhismaosti7949
@bhismaosti7949 5 жыл бұрын
Please, provide me a template . I have not found.
@fideloruko4160
@fideloruko4160 5 жыл бұрын
located in github link then download zip
@ImmediatelyLeaveYT
@ImmediatelyLeaveYT 3 жыл бұрын
thank you so much!!
@vickneshg1053
@vickneshg1053 6 жыл бұрын
Cannot found bs/js/jquery.min.js And bs/js/bootstrap.min.js........anyone help me to solve this problem
@madeerwinardiantha6699
@madeerwinardiantha6699 6 жыл бұрын
Thanks for your awesome explanation on the video. I became more understand with Django (y)
@prettyprinted
@prettyprinted 6 жыл бұрын
You're welcome!
@tejugavi7471
@tejugavi7471 7 жыл бұрын
Awesome video ever seen. Long Way to go.
@prettyprinted
@prettyprinted 7 жыл бұрын
Thanks for watching!
@LF-ro7nk
@LF-ro7nk 6 жыл бұрын
What the command prompt?
@prettyprinted
@prettyprinted 6 жыл бұрын
The thing you use to run commands like python filename.py.
@vickneshg1053
@vickneshg1053 6 жыл бұрын
Amazing work hats off u man ☺☺☺☺☺☺☺
@prettyprinted
@prettyprinted 6 жыл бұрын
Thanks for watching!
@md.shohanhossain1375
@md.shohanhossain1375 6 жыл бұрын
Very much informative
@prettyprinted
@prettyprinted 6 жыл бұрын
Thanks for watching.
@mxt1201
@mxt1201 6 жыл бұрын
Great job!
@prettyprinted
@prettyprinted 6 жыл бұрын
Thanks for watching!
@ahmedsamra1320
@ahmedsamra1320 5 жыл бұрын
i am happy during learning that thank you
@prettyprinted
@prettyprinted 5 жыл бұрын
You're welcome!
@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..
@Quantum-o5f
@Quantum-o5f 5 жыл бұрын
Thank u very much, dude!
@prettyprinted
@prettyprinted 5 жыл бұрын
You're welcome! Thanks for watching.
@kubafabisiak1711
@kubafabisiak1711 6 жыл бұрын
Yeah, you're doing great job! Thanks for this kind of stuff :)
@prettyprinted
@prettyprinted 6 жыл бұрын
Thanks, I appreciate it!
@KokoKoko-hz9cd
@KokoKoko-hz9cd 5 жыл бұрын
Nice men. Thanks so much !
@satisharvapalli3457
@satisharvapalli3457 6 жыл бұрын
Hey very much thank full to you Anthony. your videos r a lot to me.
@prettyprinted
@prettyprinted 6 жыл бұрын
You're welcome! Thanks for watching.
@nikhilbhardwaj6055
@nikhilbhardwaj6055 6 жыл бұрын
that was really amazing but why don't you use Generic Views
@prettyprinted
@prettyprinted 6 жыл бұрын
Just wanted to keep it simple for the example.
@ytlagu2010
@ytlagu2010 5 жыл бұрын
Greate stuff
@prettyprinted
@prettyprinted 5 жыл бұрын
Thanks for watching!
@sudipsingh1188
@sudipsingh1188 6 жыл бұрын
Understood a lot of concepts.....nyc
@prettyprinted
@prettyprinted 6 жыл бұрын
Thanks for watching!
@sarthaksrivastava927
@sarthaksrivastava927 5 жыл бұрын
cool
@prettyprinted
@prettyprinted 5 жыл бұрын
Thanks for watching!
@dopeking2355
@dopeking2355 5 жыл бұрын
thanks man
@prettyprinted
@prettyprinted 5 жыл бұрын
You're welcome!
@dodokwak
@dodokwak 7 жыл бұрын
even without JS!
@prettyprinted
@prettyprinted 7 жыл бұрын
Yep!
@mosemulondo6524
@mosemulondo6524 6 жыл бұрын
That was cool
@prettyprinted
@prettyprinted 6 жыл бұрын
Thanks for watching!
@kausalgautam4527
@kausalgautam4527 7 жыл бұрын
templete not found // its cause?
@prettyprinted
@prettyprinted 7 жыл бұрын
How is your template directory set up?
@kausalgautam4527
@kausalgautam4527 7 жыл бұрын
similar to yours....
@saharamanson1970
@saharamanson1970 4 жыл бұрын
Awesome.............
@ИльяФедоров-к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!
@ghazalehrezanavaz9712
@ghazalehrezanavaz9712 4 жыл бұрын
👏🏼👏🏼👏🏼👏🏼👏🏼
@Omni_G
@Omni_G 6 жыл бұрын
Hi, I'm new to Django and Python and have found your tutorials to be really helpful. I would like to ask one thing however, In this video, you used: @require_POST # What this does is that addToDo only accepts POST requests def addToDo(request): form = TodoForm(request.POST) if form.is_valid(): new_todo = Todo(text=request.POST['text']) # 'text' is from forms.py new_todo.save() return redirect('index') --------------------------------------------------------------------------------------------------------------------------------------------- However in your guestbook video, you used: def sign(request): if request.method == 'POST': form = CommentForm(request.POST) if form.is_valid(): new_comment = Comment(name=request.POST['name'], comment=request.POST['comment']) new_comment.save() return redirect('index') else: form = CommentForm() return render(request, "guestbook/sign.html", {'form': form}) I would like to ask, what exactly are the differences between the two and when do I use the first and when do I use the second? And if possible, could you do a video on how to perform a soft delete where instead of deleting the records in the database as well, the date is recorded instead
@prettyprinted
@prettyprinted 6 жыл бұрын
With @request_POST, the view only accepts POST requests. GET requests won't work. In the other view, it accepts both, so it checks for each one. I'll look into the soft delete thing. That's a good idea.
@Omni_G
@Omni_G 6 жыл бұрын
Alright, I got that part, but when do I use the one that only allows POST and when do I use the one that accepts GET and POST? Thank you! I'm hoping you could look into soft delete for Django REST as well and for like Foreign Key where instead of on_delete=models.CASCADE it's like on_delete=models.SOFT_DELETE? I've tried out plenty of sites like Medium, but to me, they were just too vague and didn't really explain much :(
@prettyprinted
@prettyprinted 6 жыл бұрын
It depends on how you design your app. If want everything handled in one view then you can or if you want a separate one for GET and POST then you can have two views. Generally, one view works when there is a lot of overlap between GET and POST. And I'll consider doing a soft delete video.
@Omni_G
@Omni_G 6 жыл бұрын
Alright!! Thanks for being so helpful!
Creating Forms From Models in Django With ModelForm
11:40
Pretty Printed
Рет қаралды 47 М.
Django To Do List App With User Registration & Login
2:12:03
Dennis Ivy
Рет қаралды 343 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
How Model Queries Work in Django
27:47
Pretty Printed
Рет қаралды 95 М.
Israel Has The Right To Defend Itself | Stand-up Comedy by Daniel Fernandes
15:07
Python Django Tutorial - Build A Todo App
51:02
Traversy Media
Рет қаралды 240 М.
Django Authentication Basics
19:38
Pretty Printed
Рет қаралды 109 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 101 М.
Python Django Tutorial: Full-Featured Web App Part 1 - Getting Started
15:32
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 492 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН