Django Tutorial - Simple Forms

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2024

ความคิดเห็น • 60

  • @roeehershberg6718
    @roeehershberg6718 5 ปีที่แล้ว +22

    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.

  • @kadrogo601
    @kadrogo601 5 ปีที่แล้ว +5

    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.

  • @waqaspathan3337
    @waqaspathan3337 3 ปีที่แล้ว +2

    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!

  • @biftukuma5088
    @biftukuma5088 ปีที่แล้ว +1

    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()

  • @fernandocorenstein6531
    @fernandocorenstein6531 4 ปีที่แล้ว +6

    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!

  • @HostDotPromo
    @HostDotPromo 5 ปีที่แล้ว +5

    Django is a lot like Laravel, makes life so much simpler and organized 🔥

  • @elkhanhamet2561
    @elkhanhamet2561 8 หลายเดือนก่อน

    What an amazing tutorial!!! Thanks a lot Tim!!! Everything became crystal clear, you're a pro!!!

  • @timesothanayongkul4923
    @timesothanayongkul4923 ปีที่แล้ว

    Thank you Tim. This video explained the concept really well and broke it down in a way that was really to understand.

  • @ankitaburman5406
    @ankitaburman5406 3 ปีที่แล้ว +1

    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.

  • @sidneifc7697
    @sidneifc7697 5 ปีที่แล้ว +1

    Very simple indeed! I'm glad I found your channel.

  • @AnnaIsHere
    @AnnaIsHere 2 ปีที่แล้ว +1

    6:45 Didn't find the link you were talking about

  • @ΝικΝοκ
    @ΝικΝοκ 3 ปีที่แล้ว

    nice one . im new to python and django , this helps alot

  • @tomaszkoscielniak612
    @tomaszkoscielniak612 5 ปีที่แล้ว +1

    Great tutorial Tim

  • @arafat_ar13
    @arafat_ar13 4 ปีที่แล้ว +1

    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!

  • @LuckazDuos
    @LuckazDuos 5 ปีที่แล้ว +2

    Thanks for this! It help me a lot.

  • @MarsLanding91
    @MarsLanding91 4 ปีที่แล้ว

    Thanks Tim! This is a great series.

  • @AnnaIsHere
    @AnnaIsHere 2 ปีที่แล้ว

    How did the redirection work? How did it know that it should display "list.html" after we used /%i ?

  • @learnsomemore1
    @learnsomemore1 3 ปีที่แล้ว +1

    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...

  • @testuser5793
    @testuser5793 5 ปีที่แล้ว +8

    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  5 ปีที่แล้ว +11

      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 ปีที่แล้ว +2

      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.

  • @Feronom
    @Feronom 4 ปีที่แล้ว +5

    why are u using def home(response): instead of def home(request)?

    • @greetingsgentlemen.8179
      @greetingsgentlemen.8179 4 ปีที่แล้ว +1

      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"

  • @tomershechner
    @tomershechner 5 ปีที่แล้ว +8

    L O V E F R O M I S R A E L

  • @holimasandy2937
    @holimasandy2937 2 ปีที่แล้ว

    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

  • @markogles3483
    @markogles3483 4 ปีที่แล้ว

    You have a good nack for teaching. Thanks for your tutelage.

  • @pranavingale6850
    @pranavingale6850 ปีที่แล้ว

    What's the difference between forms and usercreationform, when to use what!?

  • @yusufyildirim2438
    @yusufyildirim2438 2 ปีที่แล้ว

    thankks man

  • @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

  • @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!

  • @guru7587
    @guru7587 3 ปีที่แล้ว +1

    Thank You ure damn good at it ! ;D

  • @Johan87577
    @Johan87577 2 ปีที่แล้ว

    So, this is similar to what wtforms offers in flask?

  • @TomFBrady1
    @TomFBrady1 4 ปีที่แล้ว +1

    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

  • @tacohouse01
    @tacohouse01 3 หลายเดือนก่อน

    i cannot see my changes in the admin portal

  • @nehat786
    @nehat786 5 ปีที่แล้ว +1

    Why you wrote
    t = ToDoList(name=n)
    After form.save()
    And whats the use response instead of request.

    • @TechWithTim
      @TechWithTim  5 ปีที่แล้ว +2

      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

  • @sainco3036
    @sainco3036 5 ปีที่แล้ว +2

    thanks.

  • @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

  • @rezajeffrey7970
    @rezajeffrey7970 2 ปีที่แล้ว +1

    Awsome

  • @saptarshipanda2065
    @saptarshipanda2065 4 ปีที่แล้ว +3

    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.

  • @pabloyanez9469
    @pabloyanez9469 4 ปีที่แล้ว

    excelent

  • @mason6300
    @mason6300 5 ปีที่แล้ว

    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 5 ปีที่แล้ว +1

      include csrf_token in forms

    • @SteveDAgostino
      @SteveDAgostino 2 ปีที่แล้ว

      Did you add {% csrf_token %} after your in the html template?

  • @ruchithagn9917
    @ruchithagn9917 3 ปีที่แล้ว +2

    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 4 ปีที่แล้ว

      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 ! ! !