From d94d8aecff809968363c815c4ffb442e7fa61336 Mon Sep 17 00:00:00 2001 From: Fabrice Laurens Date: Fri, 18 Mar 2022 11:06:51 +0100 Subject: [PATCH] Bump Django to version 4.0.3 with Python 3.9. --- Docker/nab/requirements.txt | 4 ++-- nabweb/settings.py | 2 +- requirements.txt | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Docker/nab/requirements.txt b/Docker/nab/requirements.txt index 2ca16955..da999031 100644 --- a/Docker/nab/requirements.txt +++ b/Docker/nab/requirements.txt @@ -1,7 +1,7 @@ # Direct dependencies wheel -Django==3.2.12 -#Django==4.0.3; python_version == '3.9' +Django==3.2.12; python_version == '3.7' +Django==4.0.3; python_version == '3.9' gunicorn==20.1.0 lockfile==0.12.2 Mastodon.py==1.5.1 diff --git a/nabweb/settings.py b/nabweb/settings.py index 4c82be5d..e796e998 100644 --- a/nabweb/settings.py +++ b/nabweb/settings.py @@ -12,7 +12,7 @@ import os -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) diff --git a/requirements.txt b/requirements.txt index 2ca16955..da999031 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ # Direct dependencies wheel -Django==3.2.12 -#Django==4.0.3; python_version == '3.9' +Django==3.2.12; python_version == '3.7' +Django==4.0.3; python_version == '3.9' gunicorn==20.1.0 lockfile==0.12.2 Mastodon.py==1.5.1