X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/8903f605dea83f1070bec40d3eea27f1a1289005..339f6babf1e1d7b24e5b22662d04f99af909bd40:/apps/archive/settings.py diff --git a/apps/archive/settings.py b/apps/archive/settings.py index 3c85f84..476f6c7 100755 --- 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: