From 205e774ef8f3b42c580214b778da992d2b92b597 Mon Sep 17 00:00:00 2001 From: Mikhail Bortnikov Date: Mon, 24 Jul 2017 17:56:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=83=D1=82=D1=8C=20=D0=B2=20=D0=BD?= =?UTF-8?q?=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lms/settings.py | 4 ++++ storage/models.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lms/settings.py b/lms/settings.py index e360867..4e062db 100644 --- a/lms/settings.py +++ b/lms/settings.py @@ -65,6 +65,10 @@ YANDEX_SHOP_ID = '84348' YANDEX_scid = '78309' # Application definition +# место куда сохраняем пользовательские файлы +PERSONAL_FILES = '/personal_files/' + + INSTALLED_APPS = [ #'jet.dashboard', #'jet', diff --git a/storage/models.py b/storage/models.py index 6502b72..2685ea6 100755 --- a/storage/models.py +++ b/storage/models.py @@ -137,7 +137,7 @@ class CroppedImage(models.Model): verbose_name_plural = u'Картинки' -IMAGE_TMP = settings.MEDIA_ROOT + '/personal_files/' +IMAGE_TMP = settings.MEDIA_ROOT + settings.PERSONAL_FILES def save_resize_image(filename, pil_img, save_field, file_format):