From ed7e888b86041f485e6a46e01db215b35c8c8572 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Fri, 16 Mar 2018 12:58:29 +0300 Subject: [PATCH] LIL-314. Fix gallery images --- apps/course/templates/course/content/gallery.html | 12 ++++++++---- project/settings.py | 1 + requirements.txt | 3 ++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/course/templates/course/content/gallery.html b/apps/course/templates/course/content/gallery.html index 32a4bf91..fd0d1389 100644 --- a/apps/course/templates/course/content/gallery.html +++ b/apps/course/templates/course/content/gallery.html @@ -1,10 +1,13 @@ +{% load thumbnail %} {% if results %}
Галерея итогов обучения
-{% endif %} \ No newline at end of file +{% endif %} diff --git a/project/settings.py b/project/settings.py index a9e02e83..25bd6e03 100644 --- a/project/settings.py +++ b/project/settings.py @@ -52,6 +52,7 @@ INSTALLED_APPS = [ 'corsheaders', 'constance', 'constance.backends.database', + 'sorl.thumbnail', ] + [ 'apps.auth.apps', 'apps.user', diff --git a/requirements.txt b/requirements.txt index 2ca79a88..cf55c8a3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,9 +16,10 @@ drf-yasg[validation]==1.5.0 facepy==1.0.9 gunicorn==19.7.1 mixpanel==4.3.2 -requests==2.18.4 psycopg2-binary==2.7.4 Pillow==5.0.0 +requests==2.18.4 +sorl-thumbnail==12.4.1 twilio==6.10.5 # paymentwall-python==1.0.7 git+https://github.com/ivlevdenis/paymentwall-python.git