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
Django Admin static files with wrong URL (None
value in URL) google-storage backend
#1369
Comments
Facing the same issue with Django 4.2. |
looks like duplicate issue, same issue with AWS on bucket_name param #1361 (comment) |
It sounds like there is maybe an upstream behavior change. Can people confirm they have |
I confirm I do have |
Can you share a bit more details? I strongly suspect you are hitting the comment on this bug that was fixed. In short, are you on 4.2.5+ and also do you have another package that hasn't transitioned to the new STORAGES setting? |
Ok, thanks for the pointers. I will have another go at this issue and will fill with more details, it's very possible I am using another lib which has not transitioned to new settings. |
I notice this only for the static files for the Django Admin site. All other static files and media URLs seems fine as they return the right URL.
After running
./manage.py collectstatic
(success) then./manage runserver
...Go to Admin site and all the Static files URLs will be as such:
https://storage.googleapis.com/None/admin/css/base.css?X-Goog-Algorithm=...
returning 400.
while the expected would be:
https://storage.googleapis.com/{bucket_name}[/{location}]/admin/css/base.css?X-Goog-Algorithm=...
I have only tried with signed URLs as well.
Versions:
The text was updated successfully, but these errors were encountered: