Disable login_required.
[audio.git] / apps / archive / settings.py
old mode 100755 (executable)
new mode 100644 (file)
index 3c85f84..476f6c7
@@ -17,6 +17,9 @@ except AttributeError:
     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: