a0db35595211beaf1bdb4c2806c7de1fece4c65a
[audio.git] / apps / archive / settings.py
1 import os.path
2 from django.conf import settings
3
4 # this is where the end user puts new files
5 try:
6     NEW_PATH = settings.ARCHIVE_NEW_PATH
7 except AttributeError:
8     NEW_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
9                         "archive/new"))
10
11 # here the application keeps its managed files
12 try:
13     FILES_PATH = settings.ARCHIVE_FILES_PATH
14 except AttributeError:
15     FILES_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
16                         "archive/files"))
17
18
19 # here the app keeps the unmanaged (archive) files
20 try:
21     UNMANAGED_PATH = settings.ARCHIVE_UNMANAGED_PATH
22 except AttributeError:
23     UNMANAGED_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
24                         "archive/unmanaged"))
25
26
27 # here the app keeps the resulting (published) files
28 try:
29     FINAL_PATH = settings.ARCHIVE_FINAL_PATH
30 except AttributeError:
31     FINAL_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
32                         "archive/final"))