X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7ef4abfc9ef8f8835f83cec90040a8d91a659d00..7fdf8249c9c016e397edc3112184e74b0f3f9778:/apps/waiter/settings.py?ds=sidebyside diff --git a/apps/waiter/settings.py b/apps/waiter/settings.py index fef4a7e49..aaa9f03b3 100644 --- a/apps/waiter/settings.py +++ b/apps/waiter/settings.py @@ -1,10 +1,14 @@ -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: - 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