mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-06-07 07:02:50 +02:00
10 lines
334 B
Python
10 lines
334 B
Python
from django.conf import settings
|
|
from django.core.files.storage import FileSystemStorage
|
|
|
|
|
|
class PrivateMediaStorage(FileSystemStorage):
|
|
def __init__(self, *args, **kwargs):
|
|
kwargs.setdefault("location", settings.ATTACHMENT_MEDIA_ROOT)
|
|
kwargs.setdefault("base_url", None)
|
|
super().__init__(*args, **kwargs)
|