from django.core.files.storage import FileSystemStorage

from wikiazma import settings


class PublicMediaStorage(FileSystemStorage):
    def __init__(self):
        super(PublicMediaStorage, self).__init__(location=settings.PUBLIC_MEDIA_ABSOLUTE_LOCATION,
                                                 base_url=settings.PUBLIC_MEDIA_URL)


class PrivateMediaStorage(FileSystemStorage):
    def __init__(self):
        super(PrivateMediaStorage, self).__init__(location=settings.PRIVATE_MEDIA_ABSOLUTE_LOCATION,
                                                  base_url=settings.PRIVATE_MEDIA_URL)
