diff --git a/omero/plugins/web.py b/omero/plugins/web.py index 13ad0f2149..6edb2867d0 100644 --- a/omero/plugins/web.py +++ b/omero/plugins/web.py @@ -76,7 +76,7 @@ def wrapper(self, *args, **kwargs): import django # NOQA except Exception: self.ctx.die(681, "ERROR: Django not installed!") - if django.VERSION < (3, 2) or django.VERSION >= (4, 1): + if django.VERSION < (3, 2) or django.VERSION >= (3, 3): self.ctx.err( "ERROR: Django version %s is not " "supported!" % django.get_version() diff --git a/setup.py b/setup.py index 244b139e57..fe34d95f12 100755 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ def read(fname): "omero-py>=5.7.0", # minimum requirements for `omero web start` "concurrent-log-handler>=0.9.20", - "Django>=3.2.19,<4.1", + "Django>=3.2.18,<4.0", "django-pipeline==2.1.0", "django-cors-headers==3.7.0", "whitenoise>=5.3.0",