FILES_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
"archive/files"))
+if FILES_PATH.startswith(settings.MEDIA_ROOT):
+ FILES_SAVE_PATH = FILES_PATH[len(settings.MEDIA_ROOT):].lstrip('/')
+
# here the app keeps the unmanaged (archive) files
try:
except AttributeError:
UPLOAD_USER = 'username'
+try:
+ UPLOAD_PASSWORD = settings.ARCHIVE_UPLOAD_PASSWORD
+except AttributeError:
+ UPLOAD_PASSWORD = None
+
try:
UPLOAD_PATH = settings.ARCHIVE_UPLOAD_PATH
except AttributeError: