Created
November 27, 2018 20:36
-
-
Save davidsantiago-bib/01c891765897c6ea6a5b06bf477173e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from storages.backends.azure_storage import AzureStorage | |
class AzureMediaStorage(AzureStorage): | |
account_name = 'djangoaccountstorage' # Must be replaced by your <storage_account_name> | |
account_key = 'your_key_here' # Must be replaced by your <storage_account_key> | |
azure_container = 'media' | |
expiration_secs = None | |
class AzureStaticStorage(AzureStorage): | |
account_name = 'djangoaccountstorage' # Must be replaced by your storage_account_name | |
account_key = 'your_key_here' # Must be replaced by your <storage_account_key> | |
azure_container = 'static' | |
expiration_secs = None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment