Statistics
| Branch: | Tag: | Revision:

root / snf-stats / synnefo_stats / settings.py @ 7fcec5d7

History | View | Annotate | Download (731 Bytes)

1 7fcec5d7 Stratos Psomadakis
## -*- coding: utf-8 -*-
2 7fcec5d7 Stratos Psomadakis
from django.conf import settings
3 7fcec5d7 Stratos Psomadakis
4 7fcec5d7 Stratos Psomadakis
# Image properties
5 7fcec5d7 Stratos Psomadakis
IMAGE_WIDTH = getattr(settings, 'IMAGE_WIDTH', 210)
6 7fcec5d7 Stratos Psomadakis
WIDTH = getattr(settings, 'WIDTH', 68)
7 7fcec5d7 Stratos Psomadakis
HEIGHT = getattr(settings, 'HEIGHT', 10)
8 7fcec5d7 Stratos Psomadakis
9 7fcec5d7 Stratos Psomadakis
# Path settings
10 7fcec5d7 Stratos Psomadakis
RRD_PREFIX = getattr(settings, 'RRD_PREFIX', "/var/lib/collectd/rrd/")
11 7fcec5d7 Stratos Psomadakis
GRAPH_PREFIX = getattr(settings, 'GRAPH_PREFIX', "/var/cache/snf-stats/")
12 7fcec5d7 Stratos Psomadakis
13 7fcec5d7 Stratos Psomadakis
# Font settings
14 7fcec5d7 Stratos Psomadakis
FONT = getattr(settings, 'FONT', "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf")
15 7fcec5d7 Stratos Psomadakis
FONT = getattr(settings, 'FONT', "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf")
16 7fcec5d7 Stratos Psomadakis
17 7fcec5d7 Stratos Psomadakis
# Bar settings
18 7fcec5d7 Stratos Psomadakis
BAR_BORDER_COLOR = getattr(settings, 'BAR_BORDER_COLOR', (0x5c, 0xa1, 0xc0))
19 7fcec5d7 Stratos Psomadakis
BAR_BG_COLOR = getattr(settings, 'BAR_BG_COLOR', (0xea, 0xea, 0xea))