source: src/django_gheat/gheat/gheatsettings.py@ 9123

Last change on this file since 9123 was 9026, checked in by dennisw, 14 years ago

django_gheat - werkt met database, transprancy gefixed

File size: 897 bytes
Line 
1# Let the developer to override generic values for the gheat settings
2# Normally set on a localsettings.py file or the same settings.py of your
3# home project
4from django.conf import settings
5
6from os.path import dirname, abspath, join
7# Default Gheat settings
8GHEAT_BACKEND = getattr(settings, 'GHEAT_BACKEND','PIL')
9GHEAT_ZOOM_OPAQUE=getattr(settings, 'GHEAT_ZOOM_OPAQUE', -1)
10GHEAT_ZOOM_TRANSPARENT=getattr(settings, 'GHEAT_ZOOM_TRANSPARENT', 17)
11GHEAT_FULL_OPAQUE=getattr(settings, 'GHEAT_FULL_OPAQUE', True)
12GHEAT_BUILD_EMPTIES=getattr(settings, 'GHEAT_BUILD_EMPTIES', True)
13GHEAT_ALWAYS_BUILD=getattr(settings, 'GHEAT_ALWAYS_BUILD', True)
14GHEAT_DIRMODE = getattr(settings, 'GHEAT_DIRMODE', '0755')
15
16GHEAT_CONF_DIR = getattr(settings, 'GHEAT_CONF_DIR', join(dirname(abspath(__file__)), 'etc'))
17GHEAT_MEDIA_ROOT = getattr(settings, 'GHEAT_MEDIA_ROOT', '/tmp/gheat/')
18DEBUG = settings.DEBUG
19
20
Note: See TracBrowser for help on using the repository browser.