Support civicrm newsletters.
[wolnelektury.git] / src / waiter / settings.py
1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from os.path import abspath, join
5 from django.conf import settings
6
7 try:
8     WAITER_ROOT = abspath(settings.WAITER_ROOT)
9 except AttributeError:
10     WAITER_ROOT = abspath(join(settings.MEDIA_ROOT, 'waiter'))
11
12 try:
13     WAITER_URL = settings.WAITER_URL
14 except AttributeError:
15     WAITER_URL = join(settings.MEDIA_URL, 'waiter')
16
17 try:
18     WAITER_MAX_QUEUE = settings.WAITER_MAX_QUEUE
19 except AttributeError:
20     WAITER_MAX_QUEUE = 20