X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6e0b282242bf227d1dba35b2748b7cadb48741db..b78791b6c6ace71524e767f9d1a527972e5ba338:/apps/waiter/settings.py?ds=sidebyside diff --git a/apps/waiter/settings.py b/apps/waiter/settings.py index f75edfe50..08e88d34a 100644 --- a/apps/waiter/settings.py +++ b/apps/waiter/settings.py @@ -1,12 +1,18 @@ -from os.path import join +from os.path import abspath, join from django.conf import settings try: - WAITER_ROOT = settings.WAITER_ROOT + WAITER_ROOT = abspath(settings.WAITER_ROOT) except AttributeError: - WAITER_ROOT = join(settings.MEDIA_ROOT, 'waiter') + WAITER_ROOT = abspath(join(settings.MEDIA_ROOT, 'waiter')) try: WAITER_URL = settings.WAITER_URL except AttributeError: WAITER_URL = join(settings.MEDIA_URL, 'waiter') + +try: + WAITER_MAX_QUEUE = settings.WAITER_MAX_QUEUE +except AttributeError: + WAITER_MAX_QUEUE = 20 +