Django Tutorial - Simple Forms

  Рет қаралды 77,242

Tech With Tim

Tech With Tim

Күн бұрын

This python django tutorial covers how to create simple forms that can be used to update a database. It will also discuss the different kinds of form actions like POST and GET and when you should be using each.
Playlist: • Django Tutorial - Setu...
◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python
tech-with-tim.teachable.com/p...
📸 Instagram: / tech_with_tim
🌎 Website techwithtim.net
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-rusci. .
📂 GitHub: github.com/techwithtim
🔊 Podcast: anchor.fm/tech-with-tim
💵 One-Time Donations: www.paypal.com/donate/?token=...
💰 Patreon: / techwithtim
◾◾◾◾◾◾
⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡
Tags:
- Tech With Tim
- Django Forms
- Django Forms Tutorial
- Python Django forms tutorial
- Forms Django

Пікірлер: 61
@roeehershberg6718
@roeehershberg6718 5 жыл бұрын
I am so glad that you are making this series! You know how to talk and I understand from you many things that I didn't understand on Django's documentation. You are amazing! keep doing what you're doing.
@sidneifc7697
@sidneifc7697 4 жыл бұрын
Very simple indeed! I'm glad I found your channel.
@ankitaburman5406
@ankitaburman5406 2 жыл бұрын
thank you so much Tim, I'm a regular follower of yours ..Thank you for sharing the knowledge, helps us to stay motivated and learn coding.
@kadrogo601
@kadrogo601 4 жыл бұрын
I am really impressed by the way how you compared GET and POST. This thing kept confusing me all the time. Now I know thx to you. I am almost 10 years older than you but you are my hero.
@saarang7572
@saarang7572 4 жыл бұрын
Same this was a great explanation and now I actually understand the difference.
@fernandocorenstein6531
@fernandocorenstein6531 4 жыл бұрын
Joining your Channel soon. A truly gifted and fabulous teacher. What a pleasure to learn from you man. All the best from the Holy Land!
@TechWithTim
@TechWithTim 4 жыл бұрын
Appreciate that Fernando!
@timesothanayongkul4923
@timesothanayongkul4923 8 ай бұрын
Thank you Tim. This video explained the concept really well and broke it down in a way that was really to understand.
@MarsLanding91
@MarsLanding91 3 жыл бұрын
Thanks Tim! This is a great series.
@LuckazDuos
@LuckazDuos 5 жыл бұрын
Thanks for this! It help me a lot.
@waqaspathan3337
@waqaspathan3337 3 жыл бұрын
Tip for everyone, if you want to test and visually see if you’re able to actually add a todo list to the database you can go to the /admin page that Tim showed a couple vids back!
@tomaszkoscielniak612
@tomaszkoscielniak612 5 жыл бұрын
Great tutorial Tim
@elkhanhamet2561
@elkhanhamet2561 3 ай бұрын
What an amazing tutorial!!! Thanks a lot Tim!!! Everything became crystal clear, you're a pro!!!
@biftukuma5088
@biftukuma5088 9 ай бұрын
Thanks Tim, very helpful tutorial for beginners like me. On this part I found that we do not need to specify 'Label' name for Class CreateNewList. It could be related to new version of Django. I got an error when I specified but then when I take that out it worked. Like: class CreateNewList(forms.Form): name = forms.CharField(max_length=200) check = forms.BooleanField()
@tafadzwaaaliyahndoro338
@tafadzwaaaliyahndoro338 8 ай бұрын
about to watch it rn, hope i will understand it
@user-ng8rl3jb1i
@user-ng8rl3jb1i 2 жыл бұрын
nice one . im new to python and django , this helps alot
@mamalord8137
@mamalord8137 4 жыл бұрын
you have helped me a lot!
@markogles3483
@markogles3483 4 жыл бұрын
You have a good nack for teaching. Thanks for your tutelage.
@user-xb9tw5cp1s
@user-xb9tw5cp1s 3 ай бұрын
HTTP POST in itself does NOT encrypt data. It is because of SSL/TLS. Also, GET parameters are encrypted using SSL/TLS over HTTPS.
@guru7587
@guru7587 3 жыл бұрын
Thank You ure damn good at it ! ;D
@yusufyildirim2438
@yusufyildirim2438 2 жыл бұрын
thankks man
@arafat_ar13
@arafat_ar13 4 жыл бұрын
Hey Tim, can you help me with something? In this tutorial, you made a completely new URL to handle the adding of a new task. That's what I did too initially. But I wish to display this form on the home page so that people can quickly start typing and add the task right from the home page/ index page. But when I move over the content from "new_task.html" to my home page, the form does not show up. I made sure to render the "home.html" in the task-creating function and also pass the form. So is there any way of achieving this? Thanks a lot for your super cool videos!
@holimasandy2937
@holimasandy2937 Жыл бұрын
Am really glad to have come in contact with you as a beginner in Django. Thank you so much for this wonderful work. Can i please get access to the website you were talking about. so that i can take up from that. i really need a fullstack learning website on ecommerce, company site and how to use other database. thank you
@sainco3036
@sainco3036 5 жыл бұрын
thanks.
@AnnaIsHere
@AnnaIsHere 2 жыл бұрын
How did the redirection work? How did it know that it should display "list.html" after we used /%i ?
@AnnaIsHere
@AnnaIsHere 2 жыл бұрын
6:45 Didn't find the link you were talking about
@HostDotPromo
@HostDotPromo 5 жыл бұрын
Django is a lot like Laravel, makes life so much simpler and organized 🔥
@rezajeffrey7970
@rezajeffrey7970 2 жыл бұрын
Awsome
@kevininmarketing
@kevininmarketing 3 жыл бұрын
Hey Techwithtim, when i create a create function in views, and run the server i get and error saying main.voews has no attribute create. I saw you experienced the same tjing but didnt review it from the video.. Pls help
@learnsomemore1
@learnsomemore1 3 жыл бұрын
I am having a problem... My create page is creating new ToDoLists but it doesn't show it on the redirected page although the id is correct... I checked it in the console it is showing but not on my page. The page shows an error. Please help...
@pabloyanez9469
@pabloyanez9469 4 жыл бұрын
excelent
@Johan87577
@Johan87577 Жыл бұрын
So, this is similar to what wtforms offers in flask?
@khoderaljaber7598
@khoderaljaber7598 2 жыл бұрын
Hello Tim, when i type a List Name and click on Create New it shows an Error : DoesNotExist at /31 (many other sequence numbers) Item matching query does not exist. i did everything well as u did!! Please Help!
@pranavingale6850
@pranavingale6850 10 ай бұрын
What's the difference between forms and usercreationform, when to use what!?
@Feronom
@Feronom 4 жыл бұрын
why are u using def home(response): instead of def home(request)?
@greetingsgentlemen.8179
@greetingsgentlemen.8179 3 жыл бұрын
same question
@svetoslavslavchev7695
@svetoslavslavchev7695 2 жыл бұрын
Actually he picked the wrong name for the parameter. Since the type of the parameter is "WSGIRequest" it makes more sense to name it "request"
@TomFBrady1
@TomFBrady1 4 жыл бұрын
Where does the base.html come from inside the templates directory, that create.html extends?
@kevininmarketing
@kevininmarketing 3 жыл бұрын
It is inside the main folder as well, you create the base.html
@izayaaa
@izayaaa 5 жыл бұрын
Hello tim, could you help me with a problem im experiencing in a game im developing atm with pygame. I know this isnt the right video to comment in it cause its in no way related but the problem is ive made different sprites for standing still, running, and jumping, but when i jump the animation for jumping works but also the standing or even the running animation as long as m pressing the arrow keys
@izayaaa
@izayaaa 5 жыл бұрын
How do i disable the standinf/runnng animation when im jumping? And only show the jumping animation
@nehat786
@nehat786 5 жыл бұрын
Why you wrote t = ToDoList(name=n) After form.save() And whats the use response instead of request.
@TechWithTim
@TechWithTim 5 жыл бұрын
Response and request mean the same thing, the ToDoList isn’t being saved it’s been used to populate the form.
@hiraawan3430
@hiraawan3430 3 жыл бұрын
i'm having error here
@tomershechner
@tomershechner 5 жыл бұрын
L O V E F R O M I S R A E L
@mason6300
@mason6300 4 жыл бұрын
I'm receiving a "CSRF token missing or incorrect" error when I attempt to use the create page. I don't think this has anything to do with my cookies or ad block software. I am at a loss as to why this could be occurring. If anyone has any experience with this I would greatly appreciate some insight. (I am using a Mac if this helps, at least until the end of the week).
@vibewith100
@vibewith100 4 жыл бұрын
include csrf_token in forms
@SteveDAgostino
@SteveDAgostino Жыл бұрын
Did you add {% csrf_token %} after your in the html template?
@testuser5793
@testuser5793 4 жыл бұрын
I'm sorry man, but there's quite a few things in the http verbs sections that aren't correct. post requests are NOT ENCRYPTED BY DEFAULT!!! Excuse the capitalization, but this is a REALLY important point to make. Your post requests are no more secure than your get requests. SSL is what takes care of the encryption, not the http method. If your server does not support HTTPS, then your requests are not secure. Period. No matter if you're using GET, POST, PUT, PATCH, or anything else. Secondly, a POST request can contain query parameters, and get requests can contain a body. The tutorial is very helpful, but the information on the HTTP stuff doesn't check out, and I hope people don't actually think that a POST request is secure, because it's not.
@TechWithTim
@TechWithTim 4 жыл бұрын
Don’t apologize for correcting me I love when people point out flaws. My intent was not to mislead people, I believe I messed up a lot of terminology that makes this section ambiguous. What I mean to say about the POST request is not that it’s encrypted but that it can’t be viewed in the browser search bar, like many Get requests. I appreciate the comment and will definitely look more in SSL and HTPP methods to ensure my understanding is correct!
@rangarajann1781
@rangarajann1781 4 жыл бұрын
I just wanna say that people with a minimum knowledge in web development will know that the POST method will not provide SSL for the website and the data passed.if they don't then they should go through the resources they have learned.so it is not necessary to mention about the Encryption here.and encrypting data from a website is another big concept.
@saptarshipanda2065
@saptarshipanda2065 4 жыл бұрын
My create page is not redirecting Says local variable t referenced before assignment form has no attribute cleaned_data Edit:I solved it stating is_valid ()==False
@tnnrhpwd
@tnnrhpwd 2 жыл бұрын
Thank you for helping with my error. However, doing this causes 't' to be called before it is initialized. Setting it to TRUE fixed my error.
@ruchithagn9917
@ruchithagn9917 3 жыл бұрын
Simply waste of tym... form is not creating.. coding you have given to us in your website .. you have not given all html codes.
@atreyeebanerjee3018
@atreyeebanerjee3018 4 жыл бұрын
How do i retrieve data from database?
@shyren_more
@shyren_more 3 жыл бұрын
by using the .get() method I guess, inside the get method you can pass the id of the entry you want
@gabe5225
@gabe5225 Жыл бұрын
im gay ! ! !
Django Tutorial - Custom Forms
14:33
Tech With Tim
Рет қаралды 57 М.
Django Tutorial - Templates & Custom HTML
27:52
Tech With Tim
Рет қаралды 108 М.
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 135 МЛН
Python Django Forms tutorial
26:54
Dave Gray
Рет қаралды 6 М.
Django Tutorial - SQLite3 DataBase Tutorial
22:49
Tech With Tim
Рет қаралды 175 М.
FastAPI, Flask or Django - Which Should You Use?
9:49
Tech With Tim
Рет қаралды 55 М.
How to Easily Style Your Django Form Fields With Django Widget Tweaks
7:22
Django Forms Tutorial For Beginners - Get Started Fast! (2018)
29:36
The Dumbfounds
Рет қаралды 165 М.
Django Forms - Save Form Data to Database with Model Forms
10:58
Caleb Curry
Рет қаралды 33 М.
Make A Python Website As Fast As Possible!
22:21
Tech With Tim
Рет қаралды 671 М.
Django Forms: Creating First Django simple form
17:00
Django World
Рет қаралды 6 М.
Django QuickStart Web Application for Beginners
23:11
Python Simplified
Рет қаралды 84 М.
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37