-
Notifications
You must be signed in to change notification settings - Fork 101
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
added first revision of authtool templates #8
Conversation
@@ -0,0 +1 @@ | |||
{% load i18n %}{% trans "Account activation on" %} {{ site.name }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be a Django setting with a default value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{ form.as_p }} | ||
<input type="submit" value="{% trans 'Change my password' %}"> | ||
</form> | ||
{% else %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you dedent this else tag?
form.as_p? |
what would you use instead? |
|
||
{% trans "Please go to the following page and choose a new password:" %} | ||
{% block reset_link %} | ||
{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work on Django < 1.6. What I was saying is resolve the link in the view and pass it into the context of the email
Any idea when this will be merged to master? |
@aminy, I don't think there are actually any plans to merge this. In my experience, templates are always specific enough to a project, even within a single company, that you have to override them anyway. Between different versions of django, different base.html's, different preferences of developers, I can't imagine how to make templates that fit everyone's needs. |
I think some templates would be useful, not for using them but for having a guide to create own templates and for easy testing |
Closing because this is very old and the Django project has templates you can use as starting points if you need to.
|
This is an initial draft of templates.
http://localhost:8000/accounts/login/
http://localhost:8000/accounts/logout/
http://localhost:8000/accounts/password_change/
http://localhost:8000/accounts/password_change/done/
http://localhost:8000/accounts/password_reset/
http://localhost:8000/accounts/password_reset/done/
http://localhost:8000/accounts/reset/done/