What Should i do TypeError: Field.__init__() got an unexpected keyword argument 'Widget'
@enterenegry-uh6ei3 жыл бұрын
Where is the send mail code? (Views.py)?? Like send_mail()???
@enterenegry-uh6ei3 жыл бұрын
This code is not working after hosting the site
@TheOnkard3 жыл бұрын
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_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!
@rainxcat77533 жыл бұрын
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
@sharhanalhassan73523 жыл бұрын
Thanks man. This works for me. I
@marathipython95143 жыл бұрын
Awesome! 🤘😊 Thanks for the feedback. 🙏
@ericsokoine3 жыл бұрын
It worked thanks!!
@marathipython95143 жыл бұрын
Thanks for the feedback. 😊
@marathipython95144 жыл бұрын
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
@anselsolomon62704 жыл бұрын
Very helpful...appreciate
@marathipython95144 жыл бұрын
I'm glad you liked it! 🤗
@SachinSingh-op8jh4 жыл бұрын
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.
@marathipython95144 жыл бұрын
Dude, 'authentication_form' is for LoginView only. You're adding authentication_form in LogoutView.
@Ashish83634 жыл бұрын
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.
@marathipython95144 жыл бұрын
Your SendGrid "username" should be your email address, which you'll enter as a "sender" in settings.py.
@marathipython95144 жыл бұрын
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!
@akmshariaradditionaldirect34424 жыл бұрын
Great Job Bro. I would be glad if you create user information collection form with multiple fields.
@alokranjansanga67594 жыл бұрын
please make video on how to count user failed login
@dipendrapandey12794 жыл бұрын
how do you handel form error here??
@CK-ir2ke4 жыл бұрын
Really nice bro,keep doing videos on Django
@marathipython95144 жыл бұрын
Thank you so much brother! 😃🤜 And I hope you subscribed! 🔔 😉