[Python-modules-commits] [django-session-security] 04/16: Fix test project

Jean-Michel Vourgère nirgal at moszumanska.debian.org
Tue Sep 13 17:04:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

nirgal pushed a commit to branch debian/sid
in repository django-session-security.

commit dd97aa0b90aeb714f71629712825fb607bc63b00
Author: jpic <jamespic at gmail.com>
Date:   Mon Aug 15 13:54:30 2016 +0200

    Fix test project
---
 test_project/static                   |  1 +
 test_project/test_project/settings.py | 13 ++++++++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/test_project/static b/test_project/static
new file mode 120000
index 0000000..9499060
--- /dev/null
+++ b/test_project/static
@@ -0,0 +1 @@
+../session_security/tests/project/static/
\ No newline at end of file
diff --git a/test_project/test_project/settings.py b/test_project/test_project/settings.py
index f1843f0..6e123d4 100644
--- a/test_project/test_project/settings.py
+++ b/test_project/test_project/settings.py
@@ -120,7 +120,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ('django.contrib.auth.context_processors.auth',
  'django.core.context_processors.tz',
  'django.contrib.messages.context_processors.messages')
 
-ROOT_URLCONF = 'test_project.urls'
+ROOT_URLCONF = 'session_security.tests.project.urls'
 
 LOGIN_URL='/admin/'
 LOGOUT_URL='/admin/logout/'
@@ -133,6 +133,17 @@ TEMPLATE_DIRS = (
     # Always use forward slashes, even on Windows.
     # Don't forget to use absolute paths, not relative paths.
     os.path.join(PROJECT_ROOT, 'templates'),
+    os.path.abspath(
+        os.path.join(
+            os.path.dirname(__file__),
+            '..',
+            '..',
+            'session_security',
+            'tests',
+            'project',
+            'templates'
+        )
+    ),
 )
 
 INSTALLED_APPS = (

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-session-security.git



More information about the Python-modules-commits mailing list