setup.py imports cas_server/__init__.py. Django might not be installed
This commit is contained in:
parent
0f2281f2ea
commit
2b767f3db5
1 changed files with 6 additions and 3 deletions
|
@ -9,11 +9,14 @@
|
||||||
#
|
#
|
||||||
# (c) 2015-2016 Valentin Samir
|
# (c) 2015-2016 Valentin Samir
|
||||||
"""A django CAS server application"""
|
"""A django CAS server application"""
|
||||||
import django
|
try:
|
||||||
|
import django
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
django = None
|
||||||
|
|
||||||
#: version of the application
|
#: version of the application
|
||||||
VERSION = '1.3.1'
|
VERSION = '2.0.0'
|
||||||
|
|
||||||
if django.VERSION < (3, 2):
|
if django is None or django.VERSION < (3, 2):
|
||||||
#: path the the application configuration class
|
#: path the the application configuration class
|
||||||
default_app_config = 'cas_server.apps.CasAppConfig'
|
default_app_config = 'cas_server.apps.CasAppConfig'
|
||||||
|
|
Loading…
Reference in a new issue