-
-
Notifications
You must be signed in to change notification settings - Fork 859
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
AWS credentials only work in base settings module #67
Comments
Is this still an issue? It's really difficult to debug this without seeing more of your settings file, and the way this is described, it's likely to not be a django-storages issue but more with something specific to how you wrote the file. |
The issue was basically just that I had to define the AWS variables before doing: from storages.backends.s3boto import S3BotoStorage I worked around it but that's what was happening. |
Yes, this is due to the way that the settings are declared at the class level variable. This is unfortunately inherited legacy. It's a larger cleanup but basically my biggest desire from a maintenance perspective, should make testing easier. |
#524 is aiming to fix this. |
Fixed in #524. |
As per the recommendations in Two Scoops of Django, I've got two settings modules: base.py, and dev.py. Dev.py imports everything from base.py, and then adds whatever settings I need for the development environment.
For some reason my AWS credentials work fine in base.py, but Boto doesn't seem to be able to find them when they're in dev.py. No idea why, because Django itself has no issue seeing the variables in that file. (E.g. my DJANGO_SETTINGS_MODULE is set correctly.)
The text was updated successfully, but these errors were encountered: