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_PASSWORD = settings.ARCHIVE_UPLOAD_PASSWORD
57 except AttributeError:
58 UPLOAD_PASSWORD = None
61 UPLOAD_PATH = settings.ARCHIVE_UPLOAD_PATH
62 except AttributeError:
66 UPLOAD_CMD = settings.ARCHIVE_UPLOAD_CMD
67 except AttributeError:
68 UPLOAD_CMD = '/path/to/manage.py savemedia'
71 UPLOAD_SUDO = settings.ARCHIVE_UPLOAD_SUDO
72 except AttributeError:
77 PROJECT = settings.ARCHIVE_PROJECT
78 except AttributeError:
79 PROJECT = u'Wolne Lektury'
82 LICENSE = settings.ARCHIVE_LICENSE
83 except AttributeError:
84 LICENSE = u'http://creativecommons.org/licenses/by-sa/3.0/deed.pl'
87 ORGANIZATION = settings.ARCHIVE_ORGANIZATION
88 except AttributeError:
89 ORGANIZATION = u'Fundacja Nowoczesna Polska'
92 ADVERT = settings.ARCHIVE_ADVERT
93 except AttributeError:
95 Przekaż 1% podatku na rozwój Wolnych Lektur:
96 Fundacja Nowoczesna Polska
98 http://nowoczesnapolska.org.pl/wesprzyj_nas/
102 COVER_IMAGE = settings.ARCHIVE_COVER_IMAGE
103 except AttributeError:
104 COVER_IMAGE = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'cover.png')