Email Verifications & Notifications - Deployment with Django - Part 5

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 17

  • @MrValVet
    @MrValVet Год назад +1

    Pure gold this tutorial and channel in general. I'm not done with the Django + HTMX yet, and can't wait to start this one. Thank you!

  • @codernerd7076
    @codernerd7076 Год назад +1

    Deployment videos for Django are so rare and this is complete Deployment!

    • @ajudmeister
      @ajudmeister  Год назад +1

      Yea, probably because it involves many services outside django, which get updated all the time, and the implementation can change at any time too.

  • @ThắngPhu-z1t
    @ThắngPhu-z1t Год назад

    Great guide

  • @AmalEid-n5l
    @AmalEid-n5l 5 месяцев назад

    Thanks

  • @midhunskani
    @midhunskani Год назад

    Waiting for the ci cd tutorials.

  • @frameff9073
    @frameff9073 Год назад

    thank

  • @midhunskani
    @midhunskani Год назад

    I have a doubt. How to hide the js code in production. I just don't want the users to just inspect my javascript code

    • @ajudmeister
      @ajudmeister  Год назад

      It's not possible to hide javascript code from the users as js executes in the browser. You can make it hard to read by minifying it, but users will always be able to get it and reverse engineer it. If you have sensitive logic you don't want to be public you need to write it on the server side eg. with python and send only the necessary data to the browser.

  • @jayesh3446
    @jayesh3446 8 месяцев назад

    I am facing get address info error , error no 10109 . Pls help me to solve that issue

    • @ajudmeister
      @ajudmeister  8 месяцев назад

      Error number 10109 typically indicates a network-related issue, so not Django or Email specific. Could it be a network connection issue or Firewall block? Check if all the configurations are set up correctly (SMTP, SSL/TLS)

    • @jayesh3446
      @jayesh3446 8 месяцев назад

      @@ajudmeister Thanks for your quick response sir. i tried using env variables with f-string and it worked for me .
      thanks a lot .You are doing a nice Work keep it up.
      Hare Krishna 🙏.

  • @jonatansnyders
    @jonatansnyders 5 месяцев назад

    the confirmation email wouldn't get sent unless I attached the `email` parameter with it:
    `send_email_confirmation(request, request.user, email=primary_email.email)`

    • @ajudmeister
      @ajudmeister  5 месяцев назад +1

      Hmm, by default allauth targets the primary email for the user, so it shouldn't be necessary to declare it explicitly. Do you declare the primary_email manually like this:
      primary_email = user.emailaddress_set.filter(primary=True).first()

    • @jonatansnyders
      @jonatansnyders 5 месяцев назад

      @@ajudmeister more or less, yes:
      ```python
      primary_email = request.user.emailaddress_set.get(primary=True).email
      send_email_confirmation(request, request.user, email=primary_email)
      ```
      Anyways it's working now. Thanks for being so responsive!