Django Tutorial - Custom Forms

preview_player
Показать описание
This is a django forms tutorial that discusses how to create complex dynamic forms. In this tutorial we step away from djangos prebuilt form layout and create our own. We discuss the difference between POST and GET and how to get information from out HTML in our python code.

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python

◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

Tags:
- Tech With Tim
- Django Tutorial
- Django forms
- Django Forms Tutorial
Рекомендации по теме
Комментарии
Автор

This tutorial series was perfect: it demonstrated the power of Django in a way that I had not appreciated, and your step-by-step instructions helped me understand how the separate files work together to create what the user sees. Thank you!

colinbird
Автор

Holy shit I was looking for something like web development with python and you showed up. Perfect timing :)

matiu
Автор

Man, that's so good, thank you for your effort!

jhonnykokos
Автор

Thank you so much. Awesome tutorial bro. Keep doing 👍😀

rangabharath
Автор

That's the best youtube channel for Python programmers

leonardoreis
Автор

I had been about to go back to the beginning of everything, jajaja thanks for the course, is very good and fast to learn, thanks

daqa
Автор

I didn't understand this tutorial at all, I have watched this 3 times now, the earlier videos were great

shyrenmore
Автор

awesome video, as the rest of your content and i thank you for helping me with m current project! It would be great if you show the models at the beginning this would complete the composition of database/form/views and their interconnections :)

leonwinkel
Автор

Minute 9:27, what if the checkbox is checked and you clicked to uncheck it? It will turn into checked although you tried to uncheck it, isn't it? Great tutorials btw.

PlaneToTheBrainES
Автор

I've been watching this series and I am thinking if it wouldn't be a better, or at least cleaner, option to have separate views that will handle one type of request (e.g. POST, GET), assuming we want to stick to SOLID principles and make our view functions have a single purpose. However, I am not sure if this would be a good idea in terms of structure and readability of Django app.

judegomolina
Автор

When i check an item and press save all the items vanish and only appear again if I press reload why is this happening

mohammedashfaqueaslam
Автор

Thank you, this is what i am looking for.
I was searching how to retrieve data from html when user type text in the form i manually created. Django form is just looks so crude and i have this beautiful css form. The method what i am looking for is response.POST.get(name of the input element). thank you

SendiSiradj
Автор

Hi Tim,
First of all my apologies about my english... I'm french speaker from Switzetrland !
I folowed some of your tutorials with great pleasure and solved my problems with your knowledges.
I wonder if you could make a tutorial about a problem I encount with forms.
In fact, I need to filter a choice_list with the content of a previous choice_list field. For example, first choice would be Countries and the second will be filtered only with the Cities of the previously selected country.
I attempted with a module named "django-complete-light" but I'm not able to solve that.
May be, you'll have another path or possibility to explain like in yours previous tutos.


In all cases, thank you a lot for your tutorials very helpfull.
Didier

didiergenier
Автор

It's all working good but if i add a new item and refresh the page it will automaticlly add a new same item.How can i fix that.

dinokrivic
Автор

Hi Tim! Great topic that of custom forms :) How would you approach if you wanted to save a form with a dropdown menu?

kevinmorte
Автор

I'm little confused. In file list.html you defined value="clicked" for both inputs, regardless of item.complete is True or False. So why, when we iterate on item_set in views.py, in if expression we get True, only for this items which had "checked" in input. Condition ("c" + str(item.id)) == "clicked") is also met for this items in second input without "checked".

I believe you understand what I mean :)

tomaszkoscielniak
Автор

Great Sir! Can you do the class based and home page with each posts and each forms on the same page, commenting like facebook? Thanks Sir

classicguy
Автор

this is really nice learned alot. thanks! :D by the way how did u start learning Django? tutorials? docs?

Castisto
Автор

WHEN IN ITEM.COMPLETE=TRUE, DO NOT PUT THE TRUE. just item.complete. it'll do it, and it won't parse '==true' nor 'false' if you put it

great videos. sometimes i have the thought that many people do little mistakes on purpose just to get more comments (not you, though i'll do it haha). awesome video of course

gbagba
Автор

But how does the db gonna be look like? Are u using mongo db or mssql or mysql or something else?

khalis
visit shbcf.ru