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

Last change on this file since 9601 was 9144, checked in by dennisw, 14 years ago

Switched backend to pygame instead of pil. Rendertime reduced drastically.

File size: 900 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','PYGAME')
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.