Sadly the documentation doesn't cover how to actually implement your own retrieve class.
I tried many solutions, but nothing worked. It would be nice if someone could add a more detailed explanation to the readme or explain it at least here.
Here are my tries, so you don't have to waste your time by trying out none working solutions:
path("private-media/", MaterialDownloadView.as_view(), name="serve_private_file"),
path("private-media/", include(private_storage.urls)),
url(r'(?P<path>.*)', MaterialDownloadView.as_view(), name="serve_private_file"),
path("private-media/", include(private_storage.urls)),
url(r'(.*)(?P<path>.*)', MaterialDownloadView.as_view(), name="serve_private_file"),
path("private-media/", include(private_storage.urls)),
path("private-media/", MaterialDownloadView.as_view()),
path("private-media/", include(private_storage.urls)),
Sadly the documentation doesn't cover how to actually implement your own retrieve class.
I tried many solutions, but nothing worked. It would be nice if someone could add a more detailed explanation to the readme or explain it at least here.
Here are my tries, so you don't have to waste your time by trying out none working solutions: