Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django2.1.2 can not found password_reset_reset #75

Open
lytty opened this issue Nov 30, 2018 · 1 comment
Open

Django2.1.2 can not found password_reset_reset #75

lytty opened this issue Nov 30, 2018 · 1 comment

Comments

@lytty
Copy link

lytty commented Nov 30, 2018

  1. /mysite/mysite/settings.py:
    add 'password_reset' to INSTALLED_APPS
    add email setting as follows:
    EMAIL_HOST = 'smtp.qq.com'
    EMAIL_HOST_USER = '@qq.com'
    EMAIL_HOST_PASSWORD = '
    ' EMAIL_PORT = 587
    EMAIL_USE_TLS = True
    DEFAULT_FROM_EMAIL = '
    *****@qq.com'
    EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

  2. copy directory "python3.7/site-packages/password_reset/templates/password_reset " to my directory "DjangoTest/mysite/templates" of my project named mysite

  3. /mysite/urls.py:
    add "path('pwd_reset/', include(('password_reset.urls', 'pwd_reset'), namespace='pwd_reset'))," to urlpatterns

  4. http://127.0.0.1:8000/pwd_reset/recover/ is OK, but when input user, and click "Recover My Password", get fault web as attach file
    NoReverseMatch at pwd_reset_recover.zip

@lytty
Copy link
Author

lytty commented Nov 30, 2018

modify my email setting:
EMAIL_HOST = 'smtp.qq.com'
EMAIL_HOST_USER = '*******@qq.com'
EMAIL_HOST_PASSWORD = '***'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = '
@qq.com'
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant