Not ready for celery 3.1 yet.
[wolnelektury.git] / apps / waiter / settings.py
index f75edfe..aaa9f03 100644 (file)
@@ -1,12 +1,22 @@
-from os.path import join
+# -*- coding: utf-8 -*-
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from os.path import abspath, join
 from django.conf import settings
 
 try:
 from django.conf import settings
 
 try:
-    WAITER_ROOT = settings.WAITER_ROOT
+    WAITER_ROOT = abspath(settings.WAITER_ROOT)
 except AttributeError:
 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_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
+