fab conf fix
[wolnelektury.git] / apps / waiter / settings.py
1 from os.path import abspath, join
2 from django.conf import settings
3
4 try:
5     WAITER_ROOT = abspath(settings.WAITER_ROOT)
6 except AttributeError:
7     WAITER_ROOT = abspath(join(settings.MEDIA_ROOT, 'waiter'))
8
9 try:
10     WAITER_URL = settings.WAITER_URL
11 except AttributeError:
12     WAITER_URL = join(settings.MEDIA_URL, 'waiter')
13
14 try:
15     WAITER_MAX_QUEUE = settings.WAITER_MAX_QUEUE
16 except AttributeError:
17     WAITER_MAX_QUEUE = 20
18