Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. {% load i18n %}{% autoescape off %}
  2. {% blocktrans %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %}
  3.  
  4. {% trans "Please go to the following page and choose a new password:" %}
  5. {% block reset_link %}
  6. {{ protocol }}://{{ domain }}{% url 'LifeOfReillyJohnApp:password_reset_confirm' uidb64=uid token=token %}
  7. {% endblock %}
  8. {% trans "Your username, in case you've forgotten:" %} {{ user.get_username }}
  9.  
  10. {% trans "Thanks for using our site!" %}
  11.  
  12. {% blocktrans %}The {{ site_name }} team{% endblocktrans %}
  13.  
  14. {% endautoescape %}
  15.  
  16. from django.urls import path, include
  17. from django.contrib.auth import views as auth_views
  18. from . import views
  19.  
  20. app_name = "LifeOfReillyJohnApp"
  21.  
  22. urlpatterns = [
  23. path("PassGen/", views.PassGen, name="PassGen"),
  24. path("FontGen/", views.FontGen, name="FontGen"),
  25. path("SignUp/", views.SignUp, name="SignUp"),
  26. path("LogOut/", views.LogOut, name="LogOut"),
  27. path("LogIn/", views.LogIn, name="LogIn"),
  28. path('password-reset/',
  29. auth_views.PasswordResetView.as_view(
  30. template_name='registration/password_reset.html'
  31. ),
  32. name='password_reset'),
  33.  
  34. path('password-reset/done/',
  35. auth_views.PasswordResetDoneView.as_view(
  36. template_name='registration/password_reset_done.html'
  37. ),
  38. name='password_reset_done'),
  39.  
  40.  
  41. path('password-reset-confirm/<uidb64>/<token>/',
  42. auth_views.PasswordResetConfirmView.as_view(
  43. template_name='registration/password_reset_confirm.html',
  44. ),
  45. name='password_reset_confirm'),
  46.  
  47. path('password-reset-complete/',
  48. auth_views.PasswordResetCompleteView.as_view(
  49. template_name='registration/password_reset_complete.html'
  50. ),
  51. name='password_reset_complete'),
  52.  
  53. path("", views.home, name="home"),
  54.  
  55.  
  56. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement