[damned-lies] Add missing APP_DIRS setting



commit c16f98840f4f65ba1f49aad4ae28ccc92d356996
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Apr 24 22:52:44 2021 +0200

    Add missing APP_DIRS setting

 common/tests.py        | 4 ++++
 damnedlies/settings.py | 1 +
 2 files changed, 5 insertions(+)
---
diff --git a/common/tests.py b/common/tests.py
index 6372a74e..e2863e87 100644
--- a/common/tests.py
+++ b/common/tests.py
@@ -16,6 +16,10 @@ from .utils import lc_sorted, pyicu_present, trans_sort_object_list
 
 
 class CommonTest(DjangoTestCase):
+    def test_admin_login(self):
+        response = self.client.get(reverse('admin:index'))
+        self.assertRedirects(response, reverse('admin:login') + '?next=' + reverse('admin:index'))
+
     def test_help_pages(self):
         response = self.client.get(reverse('help', args=['reduced_po', 1]))
         self.assertContains(response, '<div class="modal-body">')
diff --git a/damnedlies/settings.py b/damnedlies/settings.py
index 098f895d..d2e72469 100644
--- a/damnedlies/settings.py
+++ b/damnedlies/settings.py
@@ -91,6 +91,7 @@ TEMPLATES = [
     {
         'BACKEND': 'django.template.backends.django.DjangoTemplates',
         'DIRS': [BASE_DIR / 'templates'],
+        'APP_DIRS': True,
         'OPTIONS': {
             'context_processors': [
                 # Default list:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]