From: Radek Czajka Date: Wed, 2 Oct 2019 09:58:02 +0000 (+0200) Subject: Minor upgrades. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/30423c0a921a37cc2213e83309d5abe04399ba15?ds=sidebyside;hp=5de19acd15a14ea2551ad57b28debc708043d830 Minor upgrades. --- diff --git a/requirements/requirements.txt b/requirements/requirements.txt index a2983e3f..08a8823b 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -12,12 +12,12 @@ librarian==1.7.6 ## Django Django==1.11.25 -fnpdjango==0.3 +fnpdjango==0.4.3 django-pipeline==1.6.14 django-cas-ng==3.6.0 -sorl-thumbnail>=12.2,<12.4 # ?? +sorl-thumbnail==12.5.0 django-maintenancemode>=0.9 -fnp-django-pagination==2.2.2 +fnp-django-pagination==2.2.4 django-gravatar2==1.4.2 django-extensions==2.1.6 diff --git a/src/redakcja/settings/__init__.py b/src/redakcja/settings/__init__.py index 99097547..571a9ed2 100644 --- a/src/redakcja/settings/__init__.py +++ b/src/redakcja/settings/__init__.py @@ -31,7 +31,7 @@ TEMPLATES = [ }, ] -MIDDLEWARE_CLASSES = ( +MIDDLEWARE = [ 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', @@ -43,12 +43,12 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.admindocs.middleware.XViewMiddleware', 'fnp_django_pagination.middleware.PaginationMiddleware', 'maintenancemode.middleware.MaintenanceModeMiddleware', -) +] if DEBUG: - MIDDLEWARE_CLASSES = ( + MIDDLEWARE = [ 'debug_toolbar.middleware.DebugToolbarMiddleware', - ) + MIDDLEWARE_CLASSES + ] + MIDDLEWARE AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend',