Commit 15f669c01d954bdfe8a02d1d9037b43f4674ad42

added in templates for auth so tests would work.

Commit diff

tests/settings.py

 
1import os
2
13SITE_ID = 1
24USE_I18N = True
35
2929MIDDLEWARE_CLASSES = (
3030 'django.middleware.common.CommonMiddleware',
3131)
32
33TEMPLATE_DIRS = [
34 os.path.join(os.path.dirname(__file__), "templates"),
35]
toggle raw diff

tests/templates/registration/logged_out.html

 
1{% extends "admin/base_site.html" %}
2{% load i18n %}
3
4{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a></div>{% endblock %}
5
6{% block content %}
7
8<p>{% trans "Thanks for spending some quality time with the Web site today." %}</p>
9
10<p><a href="../">{% trans 'Log in again' %}</a></p>
11
12{% endblock %}
toggle raw diff

tests/templates/registration/password_change_done.html

 
1{% extends "admin/base_site.html" %}
2{% load i18n %}
3{% block userlinks %}<a href="../../doc/">{% trans 'Documentation' %}</a> / {% trans 'Change password' %} / <a href="../../logout/">{% trans 'Log out' %}</a>{% endblock %}
4{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password change' %}</div>{% endblock %}
5
6{% block title %}{% trans 'Password change successful' %}{% endblock %}
7
8{% block content %}
9
10<h1>{% trans 'Password change successful' %}</h1>
11
12<p>{% trans 'Your password was changed.' %}</p>
13
14{% endblock %}
toggle raw diff

tests/templates/registration/password_change_form.html

 
1{% extends "admin/base_site.html" %}
2{% load i18n %}
3{% block userlinks %}<a href="../doc/">{% trans 'Documentation' %}</a> / {% trans 'Change password' %} / <a href="../logout/">{% trans 'Log out' %}</a>{% endblock %}
4{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password change' %}</div>{% endblock %}
5
6{% block title %}{% trans 'Password change' %}{% endblock %}
7
8{% block content %}
9
10<h1>{% trans 'Password change' %}</h1>
11
12<p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
13
14<form action="" method="post">
15
16{% if form.old_password.errors %}{{ form.old_password.html_error_list }}{% endif %}
17<p class="aligned wide"><label for="id_old_password">{% trans 'Old password:' %}</label>{{ form.old_password }}</p>
18{% if form.new_password1.errors %}{{ form.new_password1.html_error_list }}{% endif %}
19<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
20{% if form.new_password2.errors %}{{ form.new_password2.html_error_list }}{% endif %}
21<p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p>
22
23<p><input type="submit" value="{% trans 'Change my password' %}" /></p>
24</form>
25
26{% endblock %}
toggle raw diff

tests/templates/registration/password_reset_done.html

 
1{% extends "admin/base_site.html" %}
2{% load i18n %}
3
4{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %}</div>{% endblock %}
5
6{% block title %}{% trans 'Password reset successful' %}{% endblock %}
7
8{% block content %}
9
10<h1>{% trans 'Password reset successful' %}</h1>
11
12<p>{% trans "We've e-mailed a new password to the e-mail address you submitted. You should be receiving it shortly." %}</p>
13
14{% endblock %}
toggle raw diff

tests/templates/registration/password_reset_email.html

 
1{% load i18n %}
2{% trans "You're receiving this e-mail because you requested a password reset" %}
3{% blocktrans %}for your user account at {{ site_name }}{% endblocktrans %}.
4
5{% blocktrans %}Your new password is: {{ new_password }}{% endblocktrans %}
6
7{% trans "Feel free to change this password by going to this page:" %}
8
9http://{{ domain }}/password_change/
10
11{% trans "Your username, in case you've forgotten:" %} {{ user.username }}
12
13{% trans "Thanks for using our site!" %}
14
15{% blocktrans %}The {{ site_name }} team{% endblocktrans %}
toggle raw diff

tests/templates/registration/password_reset_form.html

 
1{% extends "admin/base_site.html" %}
2{% load i18n %}
3
4{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %}</div>{% endblock %}
5
6{% block title %}{% trans "Password reset" %}{% endblock %}
7
8{% block content %}
9
10<h1>{% trans "Password reset" %}</h1>
11
12<p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll reset your password and e-mail the new one to you." %}</p>
13
14<form action="" method="post">
15{% if form.email.errors %}{{ form.email.html_error_list }}{% endif %}
16<p><label for="id_email">{% trans 'E-mail address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p>
17</form>
18
19{% endblock %}
toggle raw diff