-
-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Blob - collectstatic not working #1094
Comments
Was there any one thing you changed in particular? That is, what was the configuration when it was working and what did you then subsequently change? The only way to debug things is to perturb a single thing at a time. |
I just started the project and added a new logo, and then started the collectstatic command Edit: Ok if I change my settings.py: from:
back to:
It is working, but with the custom domain it always works. Regards |
it's unclear which case is problematic - above you say that both cases are working, but I suppose you meant that one of them is not? What changed since #1082 (comment)? |
Original which worked in the last 1,5 years but not anymore: AZURE_CUSTOM_DOMAIN = f'files.foo.com' New: AZURE_CUSTOM_DOMAIN = f'{AZURE_ACCOUNT_NAME}.blob.core.windows.net' is working for collectstatic command, but I want to use the custom domain. Why is that used for authentication and not the AZURE_ACCOUNT_NAME |
Original which worked in the last 1,5 years but not anymore: AZURE_CUSTOM_DOMAIN = f'files.foo.com' New: AZURE_CUSTOM_DOMAIN = f'{AZURE_ACCOUNT_NAME}.blob.core.windows.net' is working for collectstatics , but I want to use the custom domain, why is that used for authentication and not the AZURE_ACCOUNT_NAME |
#1083 explicitly uses the account name for authentication. Isn't this what you confirmed was working in that comment at #1082? If there's still a problem here it might be best for you to figure out what the authentication to Azure needs to look like yourself: presumably you have a storage account set up with a custom domain, it shouldn't be too hard to experiment with ways of creating a No doubt an MR would be welcome! |
This was another error message in #1082
where the site was not loading the content in the frontend. If I now keep it like:
the content loads fine in the frontend and the src url is the right one.
It is working with the .blob.core.windows.net domain, but then all src urls are also from the .blob.core.windows.net domain. |
Ok the problem is that my "custom domain" is mapped via CDN and HTTPS but this will not be used for collectstatic, if I add a "custom domain" in the Azure Portal it is only http, but collectstatic works. https://docs.microsoft.com/da-dk/azure/storage/blobs/storage-custom-domain-name?tabs=azure-portal For now, I will uncomment |
I a having the same issue as @raucodes, collect static works if "AZURE_CUSTOM_DOMAIN" is commented out. Returns this error if not:
My config: app_name/custom_azure.py:
settings.py:
|
Also having the same issue. Any updates on this? If I set |
Hi,
my running project is not working:
Requirements:
Error output:
I don't have changed anything on the storage account or the settings.py
regards
Christopher
The text was updated successfully, but these errors were encountered: