Add support for Django 2.0, fix #33
This commit is contained in:
parent
4de2e2c1c6
commit
4123450e9f
@ -13,6 +13,7 @@ Unreleased
|
||||
Added
|
||||
-----
|
||||
* Support for python 3.6 and Django 1.11
|
||||
* Support for Django 2.0
|
||||
|
||||
|
||||
v0.9.0 - 2017-11-17
|
||||
|
@ -12,7 +12,6 @@
|
||||
"""Some util function for the app"""
|
||||
from .default_settings import settings
|
||||
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.http import HttpResponseRedirect, HttpResponse
|
||||
from django.contrib import messages
|
||||
from django.contrib.messages import constants as DEFAULT_MESSAGE_LEVELS
|
||||
@ -20,6 +19,10 @@ from django.core.serializers.json import DjangoJSONEncoder
|
||||
from django.utils import timezone
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
try:
|
||||
from django.urls import reverse
|
||||
except ImportError:
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
import re
|
||||
import random
|
||||
|
@ -13,7 +13,6 @@
|
||||
from .default_settings import settings, SessionStore
|
||||
|
||||
from django.shortcuts import render, redirect
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.http import HttpResponse, HttpResponseRedirect
|
||||
from django.contrib import messages
|
||||
from django.utils.decorators import method_decorator
|
||||
@ -24,6 +23,10 @@ from django.middleware.csrf import CsrfViewMiddleware
|
||||
from django.views.generic import View
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
from django.utils.safestring import mark_safe
|
||||
try:
|
||||
from django.urls import reverse
|
||||
except ImportError:
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
import re
|
||||
import logging
|
||||
|
@ -1,4 +1,4 @@
|
||||
Django >= 1.7.1,<1.11
|
||||
Django >= 1.7.1,<2.1
|
||||
setuptools>=5.5
|
||||
requests>=2.4
|
||||
requests_futures>=0.9.5
|
||||
|
3
setup.py
3
setup.py
@ -36,6 +36,7 @@ if __name__ == '__main__':
|
||||
'Framework :: Django :: 1.9',
|
||||
'Framework :: Django :: 1.10',
|
||||
'Framework :: Django :: 1.11',
|
||||
'Framework :: Django :: 2.0',
|
||||
'Intended Audience :: Developers',
|
||||
'Intended Audience :: System Administrators',
|
||||
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
||||
@ -61,7 +62,7 @@ if __name__ == '__main__':
|
||||
},
|
||||
keywords=['django', 'cas', 'cas3', 'server', 'sso', 'single sign-on', 'authentication', 'auth'],
|
||||
install_requires=[
|
||||
'Django >= 1.7,<1.12', 'requests >= 2.4', 'requests_futures >= 0.9.5',
|
||||
'Django >= 1.7,<2.1', 'requests >= 2.4', 'requests_futures >= 0.9.5',
|
||||
'lxml >= 3.4', 'six >= 1'
|
||||
],
|
||||
url="https://github.com/nitmir/django-cas-server",
|
||||
|
Loading…
Reference in New Issue
Block a user