Skip to content

Instantly share code, notes, and snippets.

@davidsantiago-bib
Created November 27, 2018 19:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidsantiago-bib/6d09a6c9efff31d3d91781e690db5ae7 to your computer and use it in GitHub Desktop.
Save davidsantiago-bib/6d09a6c9efff31d3d91781e690db5ae7 to your computer and use it in GitHub Desktop.
DEFAULT_FILE_STORAGE = 'backend.custom_azure.AzureMediaStorage'
STATICFILES_STORAGE = 'backend.custom_azure.AzureStaticStorage'
STATIC_LOCATION = "static"
MEDIA_LOCATION = "media"
AZURE_ACCOUNT_NAME = "djangoaccountstorage"
AZURE_CUSTOM_DOMAIN = f'{AZURE_ACCOUNT_NAME}.blob.core.windows.net'
STATIC_URL = f'https://{AZURE_CUSTOM_DOMAIN}/{STATIC_LOCATION}/'
MEDIA_URL = f'https://{AZURE_CUSTOM_DOMAIN}/{MEDIA_LOCATION}/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment