27 - Basic Django Forms - Python & Django 3.2 Tutorial Series

preview_player
Показать описание
27 - Basic Django Forms - Python & Django 3.2 Tutorial Series

Try Django 3.2 is a series to teach you the fundamentals of creating web applications with Python & Django by building a real project step-by-step.

Рекомендации по теме
Комментарии
Автор

@11:03 - Absolutely, a freelancing course will be extremely useful.

tigere
Автор

quality content all the way through, loving the tutorial, loving Django!

callumfleming
Автор

11:20 I see that you created two class methods clean_data and clean. But I don't see where you called them and how those print commands are being executed.

ahmetdiril
Автор

if anyone get stuck in forms, don't worry it's normal
so, what to do now?
rewatch the video and write the code as the instructor wrote it keep working and rewatch the video until you get the same result that shown in the video, then search for each function you use (is_valid(), cleaned_data(), etc....) and understand the concept of this function (what the function do and what the function returns, when the function return False and when to return True as an example) this work with me
if you don't understand it from the 10th time, don't worry, it take me 3 days to understand this basic form
keep calm and work harder, that's the key
last tip: if stuck in this video more than one week, go directly to the next video you'll see a better way

maamounhajnajeeb
Автор

how does clean_title(), clean() having same way of calling the cleaned_data but still returning different values, clean_title() is only returning title, whereas clean is returning title, content, I had tried clean_content() to check with content only but it didn't work. Video at @12:04 please answer me. Thanks in advance....

sandeepbehra
Автор

How can you modify how the form looks? I cant seem to target the html tags in css because they dont have class names. So how do i make the forms look nicer?

NaifAlqahtani
Автор

2:23 in {%if not created %} suddenly raise error with me unlike before I DON'T KNOW WHY !!!!

ahmeedhmdi
Автор

can anyone explain what is meant by cleaned cuz its too much unclear to me

Sumitkumar-okwp
Автор

Hey, I see that you are using render() after doing POST and I read on on Django Official Tut Part 4 and some answers on StackOverflow that we should return with HttpResponseRedirect.
Is there something I'm missing here? Also when I use render and refresh my page, the form gets submitted again.

sidsar