No video

Django Tutorial - Custom Forms

  Рет қаралды 58,232

Tech With Tim

Tech With Tim

Күн бұрын

Пікірлер: 77
@matiu7276
@matiu7276 5 жыл бұрын
Holy shit I was looking for something like web development with python and you showed up. Perfect timing :)
@colinbird1
@colinbird1 2 жыл бұрын
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!
@FFGAMER-pe9lw
@FFGAMER-pe9lw 4 жыл бұрын
I love this django series...
@jhonnykokos8522
@jhonnykokos8522 4 жыл бұрын
Man, that's so good, thank you for your effort!
@rangabharath4253
@rangabharath4253 5 жыл бұрын
Thank you so much. Awesome tutorial bro. Keep doing 👍😀
@leonardoreis4348
@leonardoreis4348 3 жыл бұрын
That's the best youtube channel for Python programmers
@malikjavadov366
@malikjavadov366 Жыл бұрын
Damn, perfect tutorial
@saharamanson1970
@saharamanson1970 4 жыл бұрын
Nice bro keep it up........
@daqa290885
@daqa290885 3 жыл бұрын
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
@OthmanAlikhan
@OthmanAlikhan 2 жыл бұрын
Thanks for the video =)
@shyrenmore8140
@shyrenmore8140 3 жыл бұрын
I didn't understand this tutorial at all, I have watched this 3 times now, the earlier videos were great
@RM-lb7xw
@RM-lb7xw 3 жыл бұрын
Its okay if you don't get it at first. Try going through the vid again and see what thing/syntax you don't understand and maybe try Googling it. Or maybe I could help.
@hadimasri420
@hadimasri420 5 жыл бұрын
Always the first, for the one i love
@mohammedashfaqueaslam2566
@mohammedashfaqueaslam2566 4 жыл бұрын
When i check an item and press save all the items vanish and only appear again if I press reload why is this happening
@leonwinkel6084
@leonwinkel6084 3 жыл бұрын
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 :)
@bcddd214
@bcddd214 4 жыл бұрын
I used this. It helped me!
@PlaneToTheBrainES
@PlaneToTheBrainES 5 жыл бұрын
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.
@MrArtZeh
@MrArtZeh 4 жыл бұрын
Awesome series
@gbagba81
@gbagba81 Жыл бұрын
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
@SendiSiradj
@SendiSiradj 4 жыл бұрын
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
@SendiSiradj 4 жыл бұрын
But here comes the next problem. I cannot retrieve the data when i deploy the website. But it works in localhost
@abdulwadudkhan684
@abdulwadudkhan684 6 ай бұрын
When I hit the save button checked box hot blacked so nah one help me
@judegomolina
@judegomolina 2 жыл бұрын
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.
@Optimus333
@Optimus333 4 жыл бұрын
Why does he use commas to separate button elements? As he does around 2:00
@dinokrivic5486
@dinokrivic5486 4 жыл бұрын
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.
@ShravyaHJain
@ShravyaHJain 3 ай бұрын
The page that you're looking for used information that you entered. Returning to that page might cause any action that you took to be repeated. Do you want to continue? this pop up comes that means previously done task will be repeated
@kevinmorte7780
@kevinmorte7780 4 жыл бұрын
Hi Tim! Great topic that of custom forms :) How would you approach if you wanted to save a form with a dropdown menu?
@bshxhgyshz7267
@bshxhgyshz7267 3 жыл бұрын
i had a problem with this code where it had to save the item but it didn't save because of commas in list.html but you did it without any problems how is this possible?
@Castisto
@Castisto 5 жыл бұрын
this is really nice learned alot. thanks! :D by the way how did u start learning Django? tutorials? docs?
@TechWithTim
@TechWithTim 5 жыл бұрын
Just the docs
@khalis8
@khalis8 4 жыл бұрын
But how does the db gonna be look like? Are u using mongo db or mssql or mysql or something else?
@tomaszkoscielniak612
@tomaszkoscielniak612 5 жыл бұрын
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 :)
@TechWithTim
@TechWithTim 5 жыл бұрын
The value is only “clicked” if it is is clicked
@vihashah5975
@vihashah5975 4 жыл бұрын
after he copied the line he deleted the 'clicked' part
@abdulrahmantijani2646
@abdulrahmantijani2646 5 жыл бұрын
really enjoying your videos. however I came across a problem in this video. when I click save or add item, nothing updates. A new item does not get added nor does the check box update whenever I click or unclick it. I have checked my code multiple times line by line and everything seemed the same as yours. Plz help :(
@udayposia8082
@udayposia8082 5 жыл бұрын
same problem here , please help
@abdulrahmantijani2646
@abdulrahmantijani2646 4 жыл бұрын
​@@udayposia8082 I finally solved the problem. Idk why but when I changed the name of the variable 'txt' in the views.py to something else, it suddenly started working
@viplavdube7953
@viplavdube7953 4 жыл бұрын
@@udayposia8082 hey try what ​ @Abdulrahman tijani said. Its working. Dont quit. keep trying.
@viplavdube7953
@viplavdube7953 4 жыл бұрын
@@abdulrahmantijani2646 Thanks man
@classicguy7813
@classicguy7813 4 жыл бұрын
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
@ando440
@ando440 Ай бұрын
I am starting to think I am proper dumb. So I have been through this part several times, I have looked at some other people's solutions but I can't get my head around why it is not allowing me to add items. The save button remembers the options, but nothing happens when I try to add an item to the list - anyone else got a cause and solution?
@crishl19
@crishl19 2 жыл бұрын
I still can not add Items only lists. can anyone give me a hand ? I doube the code with tim's but still dont work
@didiergenier
@didiergenier 4 жыл бұрын
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
@user-qe4wr8hm2z
@user-qe4wr8hm2z 5 жыл бұрын
Hi Tim! First of all - thx! Great videos as always. If i make everything just as you - when i'm creating a new item in my list, it appear checked (with tick in checkbox) and if i click save button all checkbox update their status vice versa (what was checked - unchecked...) I solve this problem by: if response.POST.get("c" + str(item.id)) == "clicked": item.complete = False - i made it false else: item.complete = True ... and: if len(txt) > 2: ls.item_set.create(text=txt, complete=True) - and here i made it True ... but i didn't get why it happened like this?
@TechWithTim
@TechWithTim 5 жыл бұрын
I may have just mixed up in the HTML file which is checked to start and which is not, try looking at that
@user-qe4wr8hm2z
@user-qe4wr8hm2z 5 жыл бұрын
@@TechWithTim You right, I found the cause of a problem, in list.html... Thank you master, it was my mistake =/
@mohdfayed138
@mohdfayed138 5 жыл бұрын
@@user-qe4wr8hm2z please clarify your mistake, I have the same but can't find it!!!
@mohdfayed138
@mohdfayed138 5 жыл бұрын
Sorry, this did not work. It always uncheck all
@mohdfayed138
@mohdfayed138 5 жыл бұрын
I found my typing mistake. c{{item.id}}} instead of c{{item.id}}. corrected and worked fine. SORRY to ALL
@Music4430
@Music4430 4 жыл бұрын
When I attempted this the save button didn't work, it set all of the checkboxes unchecked. When testing the code the statement: response.POST.get("c" + str(item.id)) stored the value "on" not "clicked" so I changed the IF statement in the for loop to: if response.POST.get("c" + str(item.id)) == "on": All works now.
@jeroldnay5891
@jeroldnay5891 Жыл бұрын
Hey Alex, just started on this tutorial; any reason why this is so? Thanks!
@roychen9507
@roychen9507 8 ай бұрын
i had the same problem but I still don't know why
@paul8573
@paul8573 5 жыл бұрын
What I find confusing is how to organize ' the widgets' on the website is there a way to do it with x and y
@TechWithTim
@TechWithTim 5 жыл бұрын
You wouldn’t want to use x and y because that would be absolute positioning which means your website wouldn’t scale for larger or smaller screens
@paul8573
@paul8573 5 жыл бұрын
right and thanks to replying to my comment
@codingbyday1083
@codingbyday1083 4 жыл бұрын
Tim. This is not connected to a database right? I'm making a ticketing system with django and trying to figure out how to submit data to the database, this is ony dict, right? forms.Model.form for the db right?
@stnhld2841
@stnhld2841 3 жыл бұрын
It’s not a stand alone visit the channel and find the playlist on Django. Work from the first video.
@codingbyday1083
@codingbyday1083 3 жыл бұрын
@@stnhld2841 Oh I know, I fixed the problem a long time ago and got payed. Thanks.
@mohdfayed138
@mohdfayed138 5 жыл бұрын
I am using your code, clicked or not .. It uncheck all !!!
@hadimasri420
@hadimasri420 5 жыл бұрын
Hello bro i do not have a computer and i am coding from my phone, i am also confused between learning ML and learning Django, pls what do u recommend me?
@TechWithTim
@TechWithTim 5 жыл бұрын
Geez idk man I’ve never coded from my phone
@hadimasri420
@hadimasri420 5 жыл бұрын
@@TechWithTim not its not about my phone or not, i just confused between ML and django
@CyberWorldwithPratik
@CyberWorldwithPratik 5 жыл бұрын
@@hadimasri420 bro you can learn ML and utilize trained models by putting models on sites with django... ??
@sainco3036
@sainco3036 5 жыл бұрын
thanks.
@WorkConfidential
@WorkConfidential 4 жыл бұрын
Is there a github for this? I checked my code but when I check or uncheck the boxes, and click "Save", it doesn't save.
@yassinenifa3835
@yassinenifa3835 4 жыл бұрын
Me too, did u solve it ?
@rohithgoud30
@rohithgoud30 3 жыл бұрын
​@@yassinenifa3835 just removes commas in all html files it will work
@abdulwadudkhan684
@abdulwadudkhan684 6 ай бұрын
I write same code as per tutorial
@Yash42189
@Yash42189 3 жыл бұрын
Wow the level of difficulty jumped up quite a bit on this video. Or Im just really tired
@mentore6667
@mentore6667 3 жыл бұрын
i dont know about others, but i think django forms are very poor explained.
@nehat786
@nehat786 5 жыл бұрын
Little bit confusing video
@TechWithTim
@TechWithTim 5 жыл бұрын
What part did u find confusing? I appreciate the feedback btw!
@nehat786
@nehat786 5 жыл бұрын
{% block content %} {% endblock The content inside this block. Dont know from where ls.item_set came. And clicked part is confusing to me.
@saharamanson1970
@saharamanson1970 4 жыл бұрын
Nice bro keep it up........
@saharamanson1970
@saharamanson1970 4 жыл бұрын
Nice bro keep it up........
@saharamanson1970
@saharamanson1970 4 жыл бұрын
Nice bro keep it up........
Django Tutorial - How to Add a Sidebar
9:55
Tech With Tim
Рет қаралды 44 М.
Python Django Forms tutorial
26:54
Dave Gray
Рет қаралды 8 М.
ISSEI & yellow girl 💛
00:33
ISSEI / いっせい
Рет қаралды 24 МЛН
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 14 МЛН
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 12 МЛН
How To Practice Programming So You Actually Get Good
15:46
Tech With Tim
Рет қаралды 132 М.
Style Django Forms With Bootstrap - Django Blog #5
15:46
Codemy.com
Рет қаралды 125 М.
Django Forms: Creating First Django simple form
17:00
Django World
Рет қаралды 6 М.
Django Tutorial - User Registration & Sign Up Page
25:18
Tech With Tim
Рет қаралды 108 М.
Django Forms Tutorial For Beginners - Get Started Fast! (2018)
29:36
The Dumbfounds
Рет қаралды 165 М.
The Truth About Learning Python in 2024
13:05
Tech With Tim
Рет қаралды 62 М.
Django & HTMX - Dynamic Form Creation and Submission
24:36
BugBytes
Рет қаралды 28 М.
ISSEI & yellow girl 💛
00:33
ISSEI / いっせい
Рет қаралды 24 МЛН