mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-15 19:52:52 -06:00
Django 2.1 requires Python 3.5+
This commit is contained in:
parent
77fbc42f75
commit
44a2919a29
@ -7,10 +7,10 @@ import warnings
|
||||
from django.contrib.messages import constants as messages
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
|
||||
# Check for Python 3.4+
|
||||
if sys.version_info < (3, 4):
|
||||
# Django 2.1 requires Python 3.5+
|
||||
if sys.version_info < (3, 5):
|
||||
raise RuntimeError(
|
||||
"NetBox requires Python 3.4 or higher (current: Python {})".format(sys.version.split()[0])
|
||||
"NetBox requires Python 3.5 or higher (current: Python {})".format(sys.version.split()[0])
|
||||
)
|
||||
|
||||
# Check for configuration file
|
||||
|
Loading…
Reference in New Issue
Block a user