1 # -*- coding: utf-8 -*-
4 from django.conf import settings
6 # this is where the end user puts new files
8 NEW_PATH = settings.ARCHIVE_NEW_PATH
10 NEW_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
13 # here the application keeps its managed files
15 FILES_PATH = settings.ARCHIVE_FILES_PATH
16 except AttributeError:
17 FILES_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
21 # here the app keeps the unmanaged (archive) files
23 UNMANAGED_PATH = settings.ARCHIVE_UNMANAGED_PATH
24 except AttributeError:
25 UNMANAGED_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
29 # here the app keeps the resulting (published) files
31 FINAL_PATH = settings.ARCHIVE_FINAL_PATH
32 except AttributeError:
33 FINAL_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
37 # here the app keeps temporary build files
39 BUILD_PATH = settings.ARCHIVE_BUILD_PATH
40 except AttributeError:
41 BUILD_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
46 UPLOAD_HOST = settings.ARCHIVE_UPLOAD_HOST
47 except AttributeError:
48 UPLOAD_HOST = 'wolnelektury.pl'
51 UPLOAD_USER = settings.ARCHIVE_UPLOAD_USER
52 except AttributeError:
53 UPLOAD_USER = 'username'
56 UPLOAD_PATH = settings.ARCHIVE_UPLOAD_PATH
57 except AttributeError:
61 UPLOAD_CMD = settings.ARCHIVE_UPLOAD_CMD
62 except AttributeError:
63 UPLOAD_CMD = '/path/to/manage.py savemedia'
66 UPLOAD_SUDO = settings.ARCHIVE_UPLOAD_SUDO
67 except AttributeError:
72 PROJECT = settings.ARCHIVE_PROJECT
73 except AttributeError:
74 PROJECT = u'Wolne Lektury'
77 LICENSE = settings.ARCHIVE_LICENSE
78 except AttributeError:
79 LICENSE = u'http://creativecommons.org/licenses/by-sa/3.0/deed.pl'
82 ORGANIZATION = settings.ARCHIVE_ORGANIZATION
83 except AttributeError:
84 ORGANIZATION = u'Fundacja Nowoczesna Polska'
87 ADVERT = settings.ARCHIVE_ADVERT
88 except AttributeError:
90 Przekaż 1% podatku na rozwój Wolnych Lektur:
91 Fundacja Nowoczesna Polska
93 http://nowoczesnapolska.org.pl/wesprzyj_nas/
97 COVER_IMAGE = settings.ARCHIVE_COVER_IMAGE
98 except AttributeError:
99 COVER_IMAGE = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'cover.png')