G
G
gromyko212021-02-28 12:08:34
Django
gromyko21, 2021-02-28 12:08:34

How to register via django allauth email?

I added django allauth to my project - it works (registration, login, logout). In this regard, I will omit most of the settings.

  1. The most important thing that I need is to register through a letter in the mail. This is done by adding to settings
    ACCOUNT_EMAIL_REQUIRED = True
    ACCOUNT_EMAIL_VERIFICATION = "mandatory"
    When this code is enabled - registration does not pass because it wants confirmation by mail. But this is my problem - I did not specify anywhere from which mail this letter should be sent. Can you tell me how to set it up? read docks - did not find.

  2. She also has one question - how to override the templates offered by the package? I read both in the dock itself and on the Internet - I tried several options and it does not work anywhere, in addition to redefining it inside the package itself. Here is what I have tried:
    • /myproject/myapp/templates/account/users/login.html
    • /myproject/templates/account/login.html
    • /myproject/allauth/templates/account/users/login.html
    • /myproject/account/templates/account/users/login.html


Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question