Join my free course on the basics of Django: prettyprinted.com/introdjango
@camelcasesprogramming9924 жыл бұрын
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 🤩
@thegreenroom58204 жыл бұрын
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.
@error08032 жыл бұрын
Hi Anthony, your Django playlist is frickin' awesome, can't wait to complete all of it. Thanks a lot🙏🏻
@ayushiagarwal6996 Жыл бұрын
This was the best video so far on django!
@fahimhasnainfahad66376 жыл бұрын
Probably best todo app on django. Keep on going man
@prettyprinted6 жыл бұрын
Thanks, I appreciate it!
@bhavikakapadia24626 жыл бұрын
I have been searching for Django tutorial for so long.finally I found Django 2.0 Can't wait to start learning.
@prettyprinted6 жыл бұрын
Hope you like it.
@GiantsOnTheHorizon4 жыл бұрын
As usual, great job on this course Anthony!!
@hamzabouk59825 жыл бұрын
Perfect djano explanation in 30 min def subscribing
@hireath88056 жыл бұрын
its truth that you are a very good teacher please upload more project of django
@jamikhabir4925 жыл бұрын
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.Clarke4 жыл бұрын
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!
@Taziamoma4 жыл бұрын
This was beautifully done. This was my first django app and I was really easy to understand and follow, great job!
@santanasta827 жыл бұрын
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.
@prettyprinted7 жыл бұрын
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.
@phillipdane78525 жыл бұрын
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).
@prettyprinted5 жыл бұрын
I'll consider that for future videos. Thanks for the feedback.
@ajalasegun16 жыл бұрын
Thanks man! You're such a good tutor.
@prettyprinted6 жыл бұрын
You're welcome! Thanks for watching.
@omerzaa796 жыл бұрын
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
@prettyprinted6 жыл бұрын
Glad I could help!
@cooleekova2 жыл бұрын
Hi Anthony, thanks a lot for this video and for all of your job🙏🏻 I am a big fan ☺
@MeganeFosteryukina4 жыл бұрын
This is exactly what I was searching , thank you
@Tony-tu8uz6 жыл бұрын
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?
@prettyprinted6 жыл бұрын
You can use things like jQuery, React, Vue, Angular, plain JavaScript, etc to change parts of the page without reloading it.
@mateusguimaraesalves38523 жыл бұрын
Very, very and very good buddy! Congratulations and thank you! Success for you!
@tarat.techhh5 жыл бұрын
Thank you so much!!! I am really blessed to have tutorials for free from guys like you and sentdex..
@placideirandora74055 жыл бұрын
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е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?
@kratosboi12364 жыл бұрын
really easy and nice tutorial....thank you
@nancychaudhry36233 жыл бұрын
Another really great video!
@johnswire745 жыл бұрын
Thanks for this and your other Django tutorials Anthony - I really appreciate your work.
@mzgz42166 жыл бұрын
anthony . thx for this tut , where do you host your pretty printed website ?? and whats the price for monthly or yearly plans ??
@prettyprinted6 жыл бұрын
I use a service called Teachable. It costs $100 a month.
@bijoysaraf6504 жыл бұрын
Well explained! Very clear and succinct. Thank you.
@sanfarans3 жыл бұрын
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?
@lofilife43256 жыл бұрын
26:24 my form isn't working. I can't see any result on the terminal
@yifus2375 жыл бұрын
Just want to let you know your work is a great help to me! Thank you so much!
@prettyprinted5 жыл бұрын
You're welcome! Thanks for watching!
@okprogrammer6 жыл бұрын
please also tells about the basic stuffs . Like adding template and static files
@prettyprinted6 жыл бұрын
Will do!
@mscgeoinformatics4 жыл бұрын
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
@fideloruko41605 жыл бұрын
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.
@prettyprinted5 жыл бұрын
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.
@abigailorone31536 жыл бұрын
hey Anthony. where did u get the base file that has index and static?
@prettyprinted6 жыл бұрын
Someone made it for me.
@kevinochieng56254 жыл бұрын
Wonderful Tutorial man, thanks a bunch
@vigneshks19487 жыл бұрын
Thanks for the tutorial, pretty printed..Learning a lot,will there be a tutorial on django rest framework in future with real examples?
@prettyprinted7 жыл бұрын
Yes.
@K-IT-SubhanshiRawat4 жыл бұрын
does this code use the concept of linked lists?
@vdfam7 жыл бұрын
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).
@prettyprinted7 жыл бұрын
That's a good idea for a feature for the app. Thanks for watching.
@saadimelek66534 жыл бұрын
can i use simple form ? from html without form.py ?
@safimasood61165 жыл бұрын
Thanks for such a wonderful tutorial
@Varmasangaraju44446 жыл бұрын
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)
@prettyprinted6 жыл бұрын
That's a good idea. I'll consider that. Thanks.
@awfuldesigns6 жыл бұрын
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.
@prettyprinted6 жыл бұрын
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.
@xtremehackerzpro95117 жыл бұрын
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.
@prettyprinted7 жыл бұрын
Yeah, you're right. I had a brain fart when I did that. As for modelform, I released a video on that today.
@themindstorm99476 жыл бұрын
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?
@prettyprinted6 жыл бұрын
You just have to make the migrations and again and run migrate.
@drcod3r3296 жыл бұрын
why u arent work with dark theme i barley can c the file names
@moinguys7 жыл бұрын
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?
@prettyprinted7 жыл бұрын
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-eh4rt6 жыл бұрын
Could you tell me which text editor are you using?, please
@Banydian6 жыл бұрын
Thanks!
@ДмитрийШелухин-н7й4 жыл бұрын
Many thanks you for all of you do.
@nylukkulyn84986 жыл бұрын
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?
@prettyprinted6 жыл бұрын
In the path that points to the todo.urls.py, I'm not matching against todo in the endpoint, so I can use /add.
@nylukkulyn84986 жыл бұрын
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?
@prettyprinted6 жыл бұрын
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.
@ncegamncedicbayana99126 жыл бұрын
Hi , on my index page i am failing to get the list of the todo activities.
@AngelTaylorgang8096 жыл бұрын
the AddTodo function got me so confused :( 22:50 , excellent video thought :D
@prettyprinted6 жыл бұрын
Thanks for watching!
@JoseGarcia-lw8gf5 жыл бұрын
Thanks, I'm new to Django, but this tutorial is an excellent beginnig.Great job, I appreciate it!
@prettyprinted5 жыл бұрын
You're welcome. Thanks for watching!
@mathewsjose19906 жыл бұрын
Awesome Video ... Subscribed ..Keep up the good work .
@prettyprinted6 жыл бұрын
Thanks, I appreciate it!
@vladvald8645 жыл бұрын
You could have get the todolist from ToDoIst app, it would be more interesting. But anyway this video deserves like!
@prettyprinted5 жыл бұрын
Thanks for watching!
@jorgegutierrez-fr1ub5 жыл бұрын
very useful video...I learned a lot...good job
@prettyprinted5 жыл бұрын
Thanks for watching!
@PakelisViniu6 жыл бұрын
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?
@prettyprinted6 жыл бұрын
Did you add the name on the url in your urls.py?
@carolinaochoa45756 жыл бұрын
Write instead of {% url 'add' %} {% url 'todo:add' %} the last way worked for me.
@recepozturk67115 жыл бұрын
Thanks for your effort.. Its exactly a great tutorial for a short time.
@prettyprinted5 жыл бұрын
You're welcome! Thanks for watching!
@victorkeynote63016 жыл бұрын
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.'
@prettyprinted6 жыл бұрын
Every view function must have a return statement at the end that returns something like HttpResponse or render.
@absarbhutta6382 жыл бұрын
Make a video on class base views
@anky1373396 жыл бұрын
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
@prettyprinted6 жыл бұрын
Yes, you can use Mongo with Django. I plan on making videos how to do so soon.
@anky1373396 жыл бұрын
@@prettyprinted thanks a lot
@tahseenrahman29226 жыл бұрын
Hey.. I was wondering of undoing the completed task. I tried a something but it didn't work. Can you help with it?
@tahseenrahman29226 жыл бұрын
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.)
@thehoneybadger19956 жыл бұрын
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.
@SunCheeez6 жыл бұрын
@Pretty Printed Exception Value: Reverse for 'complete' with arguments '(1,)' and keyword arguments '{}' not found. 1 pattern(s) tried: ['complete/'] Please, help
@prettyprinted6 жыл бұрын
Did you pass the item id with the complete argument in the reverse function?
@VinodGouda7 жыл бұрын
Awesome video on Django 2.0 and Python 3.
@prettyprinted7 жыл бұрын
Thanks for watching!
@VinodGouda7 жыл бұрын
I am looking for video on Django 2.0 i.e Same example with Ajax calls instead of forms.
@prettyprinted7 жыл бұрын
I'll probably cover that soon.
@VinodGouda7 жыл бұрын
Pretty Printed thanks.
@akshayabaskaran99835 жыл бұрын
Thank you so much for the awesome work. Best explanation ever :)
@shafinhaque21795 жыл бұрын
Hi, Do you have a course on django in Udemy ?
@prettyprinted5 жыл бұрын
No, I only have courses on my site: courses.prettyprinted.com
@carolinaescobar47634 жыл бұрын
what is my username when i try to log into admin? the email we created with the superuser?
@celloucisse75484 жыл бұрын
log in with your username that you entered at the beginning when you executed the commands: python manage.py createsuperuser
@celloucisse75484 жыл бұрын
like Username (leave blank to use 'dell'): admin admin is my Username
@shahidullahmiazi5 жыл бұрын
Please, edit this app and add herewith "Task history". User may find out previous Task by clicking date. Thanks.
@ibochenko6 жыл бұрын
Awesome video! Explained a lot ot me. Thank you!
@prettyprinted6 жыл бұрын
You're welcome! Thanks for watching.
@SunCheeez6 жыл бұрын
How to write a test for this todo app?
@prettyprinted6 жыл бұрын
I'll cover that in a future video.
@rbmdesenvolvimento5 жыл бұрын
Very good, thank you!
@bhismaosti79495 жыл бұрын
Please, provide me a template . I have not found.
@fideloruko41605 жыл бұрын
located in github link then download zip
@ImmediatelyLeaveYT3 жыл бұрын
thank you so much!!
@vickneshg10536 жыл бұрын
Cannot found bs/js/jquery.min.js And bs/js/bootstrap.min.js........anyone help me to solve this problem
@madeerwinardiantha66996 жыл бұрын
Thanks for your awesome explanation on the video. I became more understand with Django (y)
@prettyprinted6 жыл бұрын
You're welcome!
@tejugavi74717 жыл бұрын
Awesome video ever seen. Long Way to go.
@prettyprinted7 жыл бұрын
Thanks for watching!
@LF-ro7nk6 жыл бұрын
What the command prompt?
@prettyprinted6 жыл бұрын
The thing you use to run commands like python filename.py.
@vickneshg10536 жыл бұрын
Amazing work hats off u man ☺☺☺☺☺☺☺
@prettyprinted6 жыл бұрын
Thanks for watching!
@md.shohanhossain13756 жыл бұрын
Very much informative
@prettyprinted6 жыл бұрын
Thanks for watching.
@mxt12016 жыл бұрын
Great job!
@prettyprinted6 жыл бұрын
Thanks for watching!
@ahmedsamra13205 жыл бұрын
i am happy during learning that thank you
@prettyprinted5 жыл бұрын
You're welcome!
@lofilife43256 жыл бұрын
hello anybody help please !! reverse for 'complete' with argument'(1') not found. 1 pattern() tried
@shadow-yj3km4 жыл бұрын
href="{% url 'complete' todo_id=Todo.id %}
@shadow-yj3km4 жыл бұрын
@Rishabh Mishra href="{% url 'complete' todo_id=Todo.id %} hope this may work..
@Quantum-o5f5 жыл бұрын
Thank u very much, dude!
@prettyprinted5 жыл бұрын
You're welcome! Thanks for watching.
@kubafabisiak17116 жыл бұрын
Yeah, you're doing great job! Thanks for this kind of stuff :)
@prettyprinted6 жыл бұрын
Thanks, I appreciate it!
@KokoKoko-hz9cd5 жыл бұрын
Nice men. Thanks so much !
@satisharvapalli34576 жыл бұрын
Hey very much thank full to you Anthony. your videos r a lot to me.
@prettyprinted6 жыл бұрын
You're welcome! Thanks for watching.
@nikhilbhardwaj60556 жыл бұрын
that was really amazing but why don't you use Generic Views
@prettyprinted6 жыл бұрын
Just wanted to keep it simple for the example.
@ytlagu20105 жыл бұрын
Greate stuff
@prettyprinted5 жыл бұрын
Thanks for watching!
@sudipsingh11886 жыл бұрын
Understood a lot of concepts.....nyc
@prettyprinted6 жыл бұрын
Thanks for watching!
@sarthaksrivastava9275 жыл бұрын
cool
@prettyprinted5 жыл бұрын
Thanks for watching!
@dopeking23555 жыл бұрын
thanks man
@prettyprinted5 жыл бұрын
You're welcome!
@dodokwak7 жыл бұрын
even without JS!
@prettyprinted7 жыл бұрын
Yep!
@mosemulondo65246 жыл бұрын
That was cool
@prettyprinted6 жыл бұрын
Thanks for watching!
@kausalgautam45277 жыл бұрын
templete not found // its cause?
@prettyprinted7 жыл бұрын
How is your template directory set up?
@kausalgautam45277 жыл бұрын
similar to yours....
@saharamanson19704 жыл бұрын
Awesome.............
@ИльяФедоров-к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!
@ghazalehrezanavaz97124 жыл бұрын
👏🏼👏🏼👏🏼👏🏼👏🏼
@Omni_G6 жыл бұрын
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
@prettyprinted6 жыл бұрын
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_G6 жыл бұрын
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 :(
@prettyprinted6 жыл бұрын
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.