-
Notifications
You must be signed in to change notification settings - Fork 275
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
Upgrade project to latest versions of python and django #560
Conversation
Thank you for your contribution! Can you also fix the .github/workflows/python.yml to use the same python versions as defined in the tox.ini? |
Done! Edit: actually let me try to add a test. |
Done. Hopefully they pass properly (tox seems happy locally)… It’s a bit tricky to test settings because AppConf runs only once by default, but I think what I did really tests what’s happening. |
Thank you very much! |
Actually, I did some more digging and the way I fixed it, it won’t properly support OPTIONS for the new STORAGES key. As long as it’s just the BACKEND, all good, but OPTIONS are dropped. It might require a slightly more involved fix to do that properly. I’ll try to look into it. |
I think it will be hard to do this without actually dropping the current setting and replacing by a setting that look like the new Django one. Or alternatively, it could be a key that point to the STORAGES dict, but I’m not too sure if that’s standard. Let me know if this is something you’d like me to try to look into. I might have some time by end of the week or early next week. Unfortunately, I don’t think it’s worth releasing what I did until then. For now on my side, I’m setting |
On a second look about the new config for storages it really seems that will be better to make Basically This behavior can be in the documentation and I think that will not be a problem. What you think. Do you will have time to propose new PR with these changes? |
Sounds good. Do you really want to keep the same setting name, or would it make more sense to have a different setting name? |
See #561 |
The main issue to fix is that the lib is currently not properly getting the default STORAGE backend if the project is already using the new 4.2 settings.
I also removed unsupported versions from tox and added the new ones.