X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/65e9eb19f0c8fb7ec7b81653a63c3de9f970e2d2..c175a7540d20336179dfd453183bfe69e6f5827e:/apps/archive/settings.py?ds=sidebyside diff --git a/apps/archive/settings.py b/apps/archive/settings.py old mode 100755 new mode 100644 index 3c85f84..476f6c7 --- a/apps/archive/settings.py +++ b/apps/archive/settings.py @@ -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: