1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

[1.8.x] Deprecated TEMPLATE_DEBUG setting.

Backport of 15b711b from master.
This commit is contained in:
Aymeric Augustin
2015-02-15 15:42:05 +01:00
parent 69c662c981
commit e8950668ca
20 changed files with 72 additions and 48 deletions

View File

@@ -19,11 +19,13 @@ from .admin import MediaInline, MediaPermanentInline, site as admin_site
from .models import Category, Episode, EpisodePermanent, Media
# Set TEMPLATE_DEBUG to True to ensure {% include %} will raise exceptions.
# Set DEBUG to True to ensure {% include %} will raise exceptions.
# That is how inlines are rendered and #9498 will bubble up if it is an issue.
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',),
TEMPLATE_DEBUG=True,
ROOT_URLCONF="generic_inline_admin.urls")
@override_settings(
DEBUG=True,
PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',),
ROOT_URLCONF="generic_inline_admin.urls",
)
class GenericAdminViewTest(TestCase):
fixtures = ['users.xml']