From 2bae28290b1802d27a560da184476b83c711c5a1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 25 Aug 2013 17:35:32 +0200 Subject: Add images to finds (refs #1314) * an abstract model class has been defined to manage image and thumbnail with resizing on the fly * max size for images and thumbnails are set in project settings * new field have been added to Find model to save images and thumbnails * form and wizard of Find have been changed --- example_project/settings.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'example_project') diff --git a/example_project/settings.py b/example_project/settings.py index 6b2d1e2c6..718c6c31b 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -9,6 +9,9 @@ DEBUG_TOOLBAR = False TEMPLATE_DEBUG = DEBUG SQL_DEBUG = False +IMAGE_MAX_SIZE = (1024, 768) +THUMB_MAX_SIZE = (300, 300) + ROOT_PATH = os.path.abspath(os.path.curdir) + os.path.sep STATIC_URL = '/static/' STATIC_ROOT = ROOT_PATH + 'static/' -- cgit v1.2.3