Skip to content

Instantly share code, notes, and snippets.

@davidsantiago-bib
Created November 27, 2018 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidsantiago-bib/01c891765897c6ea6a5b06bf477173e1 to your computer and use it in GitHub Desktop.
Save davidsantiago-bib/01c891765897c6ea6a5b06bf477173e1 to your computer and use it in GitHub Desktop.
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