-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
"ValueError" with staticfiles configured to use the Azure Storage #1391
Comments
Thanks for the report, a number of people have reported similar issues across all backends and I'm simply unable to reproduce the issue. Do you have a minimal example? Can you share a few things:
|
I just tried to reproduce this with the following steps:
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"whitenoise.runserver_nostatic",
"django.contrib.staticfiles",
"storages",
]
STORAGES = {
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
},
"staticfiles": {
"BACKEND": "storages.backends.azure_storage.AzureStorage",
"OPTIONS": {
"account_name": 'MY_SA_NAME',
"azure_container": 'static',
"overwrite_files": True,
"account_key": 'MY_SA_KEY',
}
}
} "Unfortunately", I couldn't; this, way everything seemed to work. I will try some more to find the reason this happens in my Wagtail based project. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following the manual to use
django-storages
with Azure andstaticfiles
storage, I end up with this Django configuration:Running the manage.py task
collectstatic
works fine and stores the static files in the Azure Storage Account containerstatic
.When accessing the Page, this is the issue:
The text was updated successfully, but these errors were encountered: