File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 421421 "CDN_HOST" : None ,
422422 "USE_SSL" : False ,
423423}
424- if AZURE_STORAGE_ACCOUNT :
425- DEFAULT_FILE_STORAGE = "api.storage.AzureStorage"
424+ # instead of: if AZURE_STORAGE_ACCOUNT: DEFAULT_FILE_STORAGE = "api.storage.AzureStorage"
425+ # > https://django-storages.readthedocs.io/en/latest/backends/azure.html
426426
427- """
428- # FIXME: TODO: Use this instead. https://django-storages.readthedocs.io/en/latest/backends/azure.html
429- AZURE_ACCOUNT_NAME = env('AZURE_STORAGE_ACCOUNT')
430- AZURE_ACCOUNT_KEY = env('AZURE_STORAGE_KEY')
431- AZURE_CONTAINER = 'api'
427+ AZURE_ACCOUNT_NAME = env ("AZURE_STORAGE_ACCOUNT" )
428+ AZURE_ACCOUNT_KEY = env ("AZURE_STORAGE_KEY" )
429+ AZURE_CONTAINER = "api"
432430if AZURE_STORAGE_ACCOUNT :
433- DEFAULT_FILE_STORAGE = 'storages.backends.azure_storage.AzureStorage'
434- """
431+ DEFAULT_FILE_STORAGE = "storages.backends.azure_storage.AzureStorage"
435432
436433# Email config
437434EMAIL_API_ENDPOINT = env ("EMAIL_API_ENDPOINT" )
You can’t perform that action at this time.
0 commit comments