1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Brian May <bam@debian.org>
Date: Sun, 3 Jan 2016 14:37:23 +1100
Subject: Disable Django support
It is currently broken with Django 1.9, see
https://bitbucket.org/ecollins/passlib/issues/68/tests-fail-with-django-19
---
passlib/ext/django/utils.py | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/passlib/ext/django/utils.py b/passlib/ext/django/utils.py
index a83cb89..c828703 100644
--- a/passlib/ext/django/utils.py
+++ b/passlib/ext/django/utils.py
@@ -9,12 +9,9 @@ import sys
import weakref
from warnings import warn
# site
-try:
- from django import VERSION as DJANGO_VERSION
- log.debug("found django %r installation", DJANGO_VERSION)
-except ImportError:
- log.debug("django installation not found")
- DJANGO_VERSION = ()
+log.debug("Django support disabled by Debian package")
+log.debug("See https://bitbucket.org/ecollins/passlib/issues/68/tests-fail-with-django-19")
+DJANGO_VERSION = ()
# pkg
from passlib import exc, registry
from passlib.context import CryptContext
|