Contact Pages in Django - Python Django Dentist Website #6

Поділитися
Вставка
  • Опубліковано 22 січ 2025

КОМЕНТАРІ • 106

  • @Codemycom
    @Codemycom  5 років тому +1

    ▶️ Watch Entire Money Making Playlist ✅ Subscribe To My UA-cam Channel:
    bit.ly/2tEBTzg bit.ly/2IGzvOR
    ▶️ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶️ Learn to Code at Codemy.com
    Take $30 off with coupon code: youtube1

    • @sudiptabasu96
      @sudiptabasu96 4 роки тому

      Dear Sir, I'm looking for this entire project (with source code) on Dentist website. I can join and buy the course on Codemy if you are sharing the source code over Codemy. If that is the case please share the Codemy link for this project.

    • @Codemycom
      @Codemycom  4 роки тому

      @@sudiptabasu96 github.com/flatplanet/dentistDjango

    • @sudiptabasu96
      @sudiptabasu96 4 роки тому

      @@Codemycom Thanks a lot - Sir. I guess you are on Udemy as well. So, I'll soon join these courses and share your courses with others as well. All the best.

    • @Codemycom
      @Codemycom  4 роки тому

      @@sudiptabasu96 I'm on Udemy and Codemy.com (codemy is a better deal)

  • @thepraktik1773
    @thepraktik1773 4 роки тому +7

    Hello, I am Azerbaijani. I'm watching your subtitled videos. I am learning a lot thanks to you, thank you very much :)

    • @Codemycom
      @Codemycom  4 роки тому +1

      Glad to hear that!

    • @s3m3dov
      @s3m3dov 4 роки тому +1

      Good luck!

  • @iliyac-io8up
    @iliyac-io8up 7 місяців тому +1

    I'm learning to code in my freetime and decided to learn python and django as backend software..... so not planning to start a career, but i want to create websites and apps for tye company that i work at as a chemist.... therefore thank you for your tutorials!!!

  • @ankurgupta7749
    @ankurgupta7749 3 роки тому +1

    Sir i have watched many videos related to django on youtube but your video playlist is best

  • @ai.201
    @ai.201 5 років тому +1

    Thanks Walter. I really appreciate what you are doing, love from Pakistan.

    • @Codemycom
      @Codemycom  5 років тому

      Glad you're enjoying them! Hello from Las Vegas!

    • @ai.201
      @ai.201 5 років тому

      @@Codemycom wow, lasvegas party all night😁

    • @Codemycom
      @Codemycom  5 років тому +1

      @@ai.201 Right?! How do I ever get any work done?! lol

    • @tatendakwaramba7130
      @tatendakwaramba7130 3 роки тому

      Walter White? LMFAO, genius

  • @Ibraheem_ElAnsari
    @Ibraheem_ElAnsari 3 роки тому

    I did the exact same thing but when I hit "submit" it says " CSRF verification failed: Request aborted ".
    Why is that .. I added the csrf_token

    • @Codemycom
      @Codemycom  3 роки тому

      Check your code for typos

  • @davidprado5394
    @davidprado5394 3 роки тому

    What'd happend if I send an empty form? Would there be an error?

  • @abduljabbar5237
    @abduljabbar5237 2 роки тому +1

    Hi, your videos are very informative. I have a question. I have implemented a form to save student data, using the technique you used in this video. I want to update the student record. How can I pre populate the form fields? I don't want to use Model Forms. Please help me.
    Love from Pakistan:)

  • @greenrhythmmusic5329
    @greenrhythmmusic5329 4 роки тому

    Hey there thank you so much for the video but i am getting some problem, whenever i click on contact us page it buffers continuously and doesn't loads the page...

    • @Codemycom
      @Codemycom  4 роки тому

      Go to your terminal and Ctrl+C to break out of the server. Is there an error message? It will tell you what to do.

    • @shubhamjain2968
      @shubhamjain2968 4 роки тому

      In your js src add website/

  • @besjancoku196
    @besjancoku196 4 роки тому

    Sir I just turned off my comp and my virtual enviroment in git bash is gone.With which command should I call it back?

    • @Codemycom
      @Codemycom  4 роки тому +1

      The same commands as when we turned it on the first time.

  • @papeibrahimadiawara
    @papeibrahimadiawara 4 роки тому

    hi , i have a problem with the form, when i submit i have this error "MultiValueDictKeyError / request.POST"
    name =request.post['name' ] doesn't work for me but request.post.get('name') work perfectly

    • @Codemycom
      @Codemycom  4 роки тому

      Yeah some people just have that problem...I don't know why

    • @DanielUngureanu86
      @DanielUngureanu86 4 роки тому

      @@Codemycomcould you please give some info on how to fix that error?

    • @DanielUngureanu86
      @DanielUngureanu86 4 роки тому

      Ok, i figured it out... for those who get this error you need to use 'request.POST.get(''whatever")'.

    • @Codemycom
      @Codemycom  4 роки тому

      @@DanielUngureanu86 yup

  • @farzaanwadiwalla2075
    @farzaanwadiwalla2075 3 роки тому

    Is there a video on how to build the 'about us' page using django and react?

  • @sheelasaipriya8641
    @sheelasaipriya8641 Рік тому

    my contact page is in php form how to convert it into html form and perform the next steps

    • @Codemycom
      @Codemycom  Рік тому

      Throw it out and build it again with Django, in the normal Django manner. I have tons of courses teaching all things django at Codemy.com

  • @Ism-x8f
    @Ism-x8f 4 роки тому

    I got a problem about the buttons for the home, pages, blog and the rest. every time I click a button it takes me to a 404 error, what should I do?

    • @Codemycom
      @Codemycom  4 роки тому

      Check your code for errors vs the code in the videos

    • @Ism-x8f
      @Ism-x8f 4 роки тому

      @@Codemycom Can you give me a specific place to compare because in all of the vids I have the same exact code

    • @Codemycom
      @Codemycom  4 роки тому

      @@Ism-x8f No sorry. But it will be somewhere around the button code or form code etc

    • @Ism-x8f
      @Ism-x8f 4 роки тому

      @@CodemycomWhat folder is the button code in?

    • @Codemycom
      @Codemycom  4 роки тому

      @@Ism-x8f It's the html page in your templates directory

  • @pubgdiaries6037
    @pubgdiaries6037 4 роки тому

    hello sir i m getting error on editing our dentist section
    i am not able to change name on single dentist area under div tag
    i edited h5 and p tag but it shows previous result

    • @Codemycom
      @Codemycom  4 роки тому

      Did you save the file first? Try restarting the server, then your computer.

  • @sidrafik7871
    @sidrafik7871 3 роки тому

    i can't call variables last_name and first name when i run it and fill all the fields ; the page is reloaded and the last_name does not appear when i use {{ last_name}}
    CAN YOU HELP ME PLEASE

    • @sidrafik7871
      @sidrafik7871 3 роки тому

      def contact(request):
      if request.method == 'POST':
      first_name = request.POST['fname']
      last_name = request.POST['lname']
      date = request.POST['date']
      email = request.POST['email']
      treatment = request.POST['treatment']
      note = request.POST['note']
      return render(request, 'contact.html', {'last_name': last_name})
      else:
      return render(request, 'contact.html', {})
      and in the contact page :
      hello - {{ last_name }}

    • @sidrafik7871
      @sidrafik7871 3 роки тому

      PLEASE HELP

    • @Codemycom
      @Codemycom  3 роки тому +1

      Rewatch the video and recheck your code for errors.

  • @jenifer5463
    @jenifer5463 2 роки тому

    Email send successfully but from gmail id or gmail address not found.. Its redirect my gmail and when i check my gmail...

    • @jenifer5463
      @jenifer5463 2 роки тому

      Hope this is a small problem will you fixed it...

  • @Redwane-Music
    @Redwane-Music 3 роки тому

    i am really sorry but I think i am missing a lot here. why did we need Python and Django here, why instead we didn't just modify the html files to make the site our own? can you please explain , couldn't you just modify the html and javascript on the already existing webpage , what is the advantage ?

    • @Codemycom
      @Codemycom  3 роки тому

      What already existing webpage? You can use any of hundreds of web frameworks. Yes you can do plain html. If you don't need any database or user interaction that's fine. If you aren't interested in Python and Django, why are you watching this?

    • @Redwane-Music
      @Redwane-Music 3 роки тому

      ​@@Codemycom no please don't get me wrong, I am learning Python and that is why I ended up watching this course, I wanted to know what is it that is a big advantage, so far I din't see any database manipulations or transformation of the existing javascript or ad-ons with Python/Django scripts for that purpose. Again with all my respect I just want to know what is it that is so outstanding that should let me want to program here with Python.

    • @Codemycom
      @Codemycom  3 роки тому

      @@Redwane-Music This specific playlist doesn't deal with databases. That doesn't mean there are no databases with python and django. Python is incredibly powerful and allows you to do orders of magnitude more than a simple HTML site.

  • @oveyo8254
    @oveyo8254 3 роки тому

    Can a contact form be created on a single page website? As in, without creating a separate template for the contact form.

    • @ChristianHaugland74
      @ChristianHaugland74 3 роки тому

      yes, you can, just make a section on the index.html page where you put your form.

    • @oveyo8254
      @oveyo8254 3 роки тому

      Thanks I got it

  • @lissankoirala
    @lissankoirala 4 роки тому

    Thanks for this wonderful video sir, really helpful

  • @bibletabernaclepmb3108
    @bibletabernaclepmb3108 4 роки тому

    Thanks man. This video is very useful.

  • @raneem2178
    @raneem2178 4 роки тому

    the form doesn't work i try like you did but doesn't work what i should do?

    • @Codemycom
      @Codemycom  4 роки тому

      Check your code for errors

  • @iflyenglish
    @iflyenglish 4 роки тому

    Dear Sir , thank you a lot. I got this error when I tried to enter my info in contact form MultiValueDictKeyError , I googled and used .get after each POST using paranthesis. It worked but now I can't get the name I enter next to "Get in touch " it just says ' None' . I tried to change 'message_name' to 'message-name' but it didn't work.

    • @Codemycom
      @Codemycom  4 роки тому

      Why change to message-name? What is the exact original error?

    • @iflyenglish
      @iflyenglish 4 роки тому

      @@Codemycom There is no error , I just can't get message-name next to "Get in touch " text on the website

    • @Codemycom
      @Codemycom  4 роки тому

      @@iflyenglish You said you got a MultiValueDictKeyError error.

  • @dandansc8629
    @dandansc8629 3 роки тому +2

    Great tutorial, thank you. I wondered - are there any security drawbacks of grabbing input fields data by 'request.POST' rather than 'cleaned_data'? I would prefer to use a ready, styled form in the html template, rather than defining a form in 'forms.py'. Is 'request.Post' secure enough just for an email, i.e. without saving input data in the database?

  • @anupam2954
    @anupam2954 4 роки тому

    Thank you for the video,
    Do you have Django AJAX POST requests video?

  • @ryan_0337
    @ryan_0337 5 років тому

    Do you have the code of the HTML on github for example ?

    • @Codemycom
      @Codemycom  5 років тому

      I'll push it there next Monday or Tuesday when I shoot a video on using Github for the Dental website...

    • @AdityaKumar-pp4xw
      @AdityaKumar-pp4xw 4 роки тому +1

      @@Codemycom where is the link?

    • @Codemycom
      @Codemycom  4 роки тому +2

      @@AdityaKumar-pp4xw github.com/flatplanet/dentistDjango

    • @AdityaKumar-pp4xw
      @AdityaKumar-pp4xw 4 роки тому

      @@Codemycom Thanks for quick response!

  • @ridzirida3707
    @ridzirida3707 4 роки тому +1

    Awesome Really Appreciate your efforts!
    Also I got "GET directory/app/img.png" Error for all the pictures that i uploaded on template myself. I used collect static too but doesn't work i keep getting this.

    • @Codemycom
      @Codemycom  4 роки тому

      Either an error with your static tags, or an error with your settings.py static_dirs code, or you saved your static directory in the wrong place.

  • @sambitmohanty7835
    @sambitmohanty7835 4 роки тому +1

    love from India

  • @smithbalar
    @smithbalar 4 роки тому

    Hello Sir, I am following this tutorial series with different Template and in that, contact section is available in index.html and it goes through contact.php file, so I want to know that how to make communication between php and Django. :)

    • @Codemycom
      @Codemycom  4 роки тому +1

      You don't

    • @smithbalar
      @smithbalar 4 роки тому

      @@Codemycom Ok

    • @smithbalar
      @smithbalar 4 роки тому

      Sir, So what changes I have to do to get contact section validation in same home.html page?, and also what to change in views.py and other files, please help me if you can. Because I am beginner and your way of teaching is really good than others and also easily understandable.

  • @Ofoqwhite
    @Ofoqwhite 3 роки тому

    Hello John, thank you for the hard work, great courses!
    I have a question on, have you somewhere explained how this works when we have websites that work with sections and not templates? I have a website here and it only has sections in it, like contact section, home section etc...

    • @Codemycom
      @Codemycom  3 роки тому +1

      Sorry, I don't know what you mean by sections. It's still HTML right? Are you talking about all one page? It's still just a matter of HTML...

  • @accounter652.
    @accounter652. 4 роки тому

    Hello teacher,awesome video!!This helped me so much🤩but I have a problem with contact form.I have done it exactly like you more than 3 times😅and again the same error:unindent does not match any outer indentation level.How can I fix this please?

  • @nowyouknow2249
    @nowyouknow2249 5 років тому

    Thanks a lot

    • @Codemycom
      @Codemycom  5 років тому

      Glad you enjoyed it!

  • @rangabharath4253
    @rangabharath4253 5 років тому

    Thank u so much

    • @Codemycom
      @Codemycom  5 років тому +1

      You're very welcome!

  • @ryan_0337
    @ryan_0337 5 років тому

    Thanks :)

  • @xiaow249
    @xiaow249 4 роки тому +1

    it should be request.POST.get() instead of request.POST()

    • @HustleTrials
      @HustleTrials 3 роки тому

      yes. your are right. request.POST[] through MutilValueKeyError

  • @baibars3139
    @baibars3139 3 роки тому

    thnx bro

    • @Codemycom
      @Codemycom  3 роки тому +1

      Welcome

    • @baibars3139
      @baibars3139 3 роки тому

      @@Codemycom shukria sir g big fan of you

    • @baibars3139
      @baibars3139 3 роки тому

      @@Codemycom shukria means thnx a lot in pakistani language

    • @Codemycom
      @Codemycom  3 роки тому

      @@baibars3139 Thanks for watching!

    • @baibars3139
      @baibars3139 3 роки тому

      @@Codemycom welcom sir