summaryrefslogtreecommitdiff
path: root/example_project
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-08-25 17:35:32 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-08-25 17:35:32 +0200
commit62d12b1e348323e0acd3f76026defce9aab4e5e0 (patch)
tree54218f760a4955d071f934a54811a2be9778894e /example_project
parent255e494370e287c0d0fc78131c4d56e7d805cadb (diff)
downloadIshtar-62d12b1e348323e0acd3f76026defce9aab4e5e0.tar.bz2
Ishtar-62d12b1e348323e0acd3f76026defce9aab4e5e0.zip
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
Diffstat (limited to 'example_project')
-rw-r--r--example_project/settings.py3
1 files changed, 3 insertions, 0 deletions
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/'