Пікірлер
@mikep541
@mikep541 Жыл бұрын
It works! Respect you and many thanks
@gamingzain
@gamingzain 2 жыл бұрын
What Should i do TypeError: Field.__init__() got an unexpected keyword argument 'Widget'
@enterenegry-uh6ei
@enterenegry-uh6ei 3 жыл бұрын
Where is the send mail code? (Views.py)?? Like send_mail()???
@enterenegry-uh6ei
@enterenegry-uh6ei 3 жыл бұрын
This code is not working after hosting the site
@TheOnkard
@TheOnkard 3 жыл бұрын
Hello ! My code seems to be working fine on local host , but putting on aws ec2 , it seems to run into a 502 ? running ec2 with rds and nginx as server. Do let me know if theres anything which I am missing , I am using ssl certificate so do I change the smtp port? Thanks !
@masiuk_
@masiuk_ 3 жыл бұрын
Too hard. Easy way: pypi.org/project/sendgrid-django/ In urls.py do this: path('password_reset/', auth_views.PasswordResetView.as_view(email_template_name='registration/password_reset_email1.html', from_email='[email protected]), name='password_reset') And creating templates (same video templates) of course!
@rainxcat7753
@rainxcat7753 3 жыл бұрын
thanks, it helped! I have a question: can you tell me how can I change the default message with an HTML template for the email? thanks
@sharhanalhassan7352
@sharhanalhassan7352 3 жыл бұрын
Thanks man. This works for me. I
@marathipython9514
@marathipython9514 3 жыл бұрын
Awesome! 🤘😊 Thanks for the feedback. 🙏
@ericsokoine
@ericsokoine 3 жыл бұрын
It worked thanks!!
@marathipython9514
@marathipython9514 3 жыл бұрын
Thanks for the feedback. 😊
@marathipython9514
@marathipython9514 4 жыл бұрын
SendgridTwilio has changed its SMTP policy. Their endpoints no longer accept username and password. Your Sendgrid API key will be your password and the Host will be "apikey". SENDGRID_API_KEY = os.getenv('SENDGRID_API_KEY') EMAIL_HOST = 'smtp.sendgrid.net' EMAIL_HOST_USER = 'apikey' 👆 👇 (this is exactly the value 'apikey') EMAIL_HOST_PASSWORD = SENDGRID_API_KEY EMAIL_PORT = 587 EMAIL_USE_TLS = True
@anselsolomon6270
@anselsolomon6270 4 жыл бұрын
Very helpful...appreciate
@marathipython9514
@marathipython9514 4 жыл бұрын
I'm glad you liked it! 🤗
@SachinSingh-op8jh
@SachinSingh-op8jh 4 жыл бұрын
i tried adding authentication_form=UserLoginForm in the URL but kept getting this error please let me know what could have gone wrong. error: LogoutView() received an invalid keyword 'authentication_form'. as_view only accepts arguments that are already attributes of the class.
@marathipython9514
@marathipython9514 4 жыл бұрын
Dude, 'authentication_form' is for LoginView only. You're adding authentication_form in LogoutView.
@Ashish8363
@Ashish8363 4 жыл бұрын
I'm getting a *550, b'Unauthenticated senders not allowed', '[email protected]'* error when trying this. I have tried activating SMTP accounts for both sendgrid and sendinmail by contacting them via email but cant seem to fix it.
@marathipython9514
@marathipython9514 4 жыл бұрын
Your SendGrid "username" should be your email address, which you'll enter as a "sender" in settings.py.
@marathipython9514
@marathipython9514 4 жыл бұрын
SendgridTwilio has changed their policy about SMTP. Their endpoints no longer accepts usename and password. Your Sendgrid API key will be your password and Host will be "apikey". SENDGRID_API_KEY = os.getenv('SENDGRID_API_KEY') EMAIL_HOST = 'smtp.sendgrid.net' EMAIL_HOST_USER = 'apikey' # this is exactly the value 'apikey' EMAIL_HOST_PASSWORD = SENDGRID_API_KEY EMAIL_PORT = 587 EMAIL_USE_TLS = True Link to their article sendgrid.com/docs/for-developers/sending-email/django/ This will work!
@akmshariaradditionaldirect3442
@akmshariaradditionaldirect3442 4 жыл бұрын
Great Job Bro. I would be glad if you create user information collection form with multiple fields.
@alokranjansanga6759
@alokranjansanga6759 4 жыл бұрын
please make video on how to count user failed login
@dipendrapandey1279
@dipendrapandey1279 4 жыл бұрын
how do you handel form error here??
@CK-ir2ke
@CK-ir2ke 4 жыл бұрын
Really nice bro,keep doing videos on Django
@marathipython9514
@marathipython9514 4 жыл бұрын
Thank you so much brother! 😃🤜 And I hope you subscribed! 🔔 😉
@codedjango
@codedjango 4 жыл бұрын
Chaan :)
@marathipython9514
@marathipython9514 4 жыл бұрын
Aah! 😁🤘 Thanks for watching 😀🤜
@informativecontent4778
@informativecontent4778 4 жыл бұрын
Nice dude
@marathipython9514
@marathipython9514 4 жыл бұрын
Thank you brother. 😀😊🤜