Cloud-CV/EvalAI

View on GitHub
settings/custom_storages.py

Summary

Maintainability
A
0 mins
Test Coverage
from storages.backends.s3boto import S3BotoStorage

from .prod import STATICFILES_LOCATION, MEDIAFILES_LOCATION

# In order to make sure that both static and media files are stored in
# different directories


class StaticStorage(S3BotoStorage):
    location = STATICFILES_LOCATION


class MediaStorage(S3BotoStorage):
    location = MEDIAFILES_LOCATION