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