mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Use django-appconf to 1.0.3+
New Django deprecates six usage and the new django-appconf version offers six internally, being compatible with new Django versions. Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
This commit is contained in:
parent
b46e7cce01
commit
180f2b85d6
2 changed files with 1 additions and 11 deletions
10
axes/conf.py
10
axes/conf.py
|
|
@ -1,13 +1,3 @@
|
|||
# TODO: Remove these imports after django-appconf does not depend on django.utils.six
|
||||
try:
|
||||
from django.utils import six # noqa
|
||||
except ImportError: # pragma: no cover
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
sys.modules['django.utils.six'] = __import__('six')
|
||||
warnings.warn('django.utils.six was patched for django-appconf backwards compatibility', ImportWarning)
|
||||
|
||||
from django.conf import settings
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -35,7 +35,7 @@ setup(
|
|||
python_requires='~=3.5',
|
||||
install_requires=[
|
||||
'django',
|
||||
'django-appconf',
|
||||
'django-appconf>=1.0.3',
|
||||
'django-ipware>=2.0.2',
|
||||
'pytz',
|
||||
'six',
|
||||
|
|
|
|||
Loading…
Reference in a new issue