-
Notifications
You must be signed in to change notification settings - Fork 13
Convert student explorer to use JSON instead of env for configuration #119
Comments
It might be better to just skip this and go for a live-settings The most popular/updated there are django-constance and django-dynamic-preferences |
Hi, I'm looking into django-constance to migrate to live-settings. Seems like that is a lot less work than using JSON instead of env. Any pointers would be appreciated. |
Yeah, I agree. I haven't looked at it yet and don't know your level of Django experience, but even if some of the settings were migrated out of the settings.py into a live settings like this I'd consider it a success. I like how Constance looks https://django-constance.readthedocs.io/en/latest/ And I'd probably just go with the database backend to be easier for now (though we have been looking into using Redis more in production). It looks pretty straightforward. "Modify your settings.py. Add 'constance' to your INSTALLED_APPS, and move each key you want to turn dynamic into the CONSTANCE_CONFIG section, like this:" So try to install it, move a few settings we have defined there now (like maybe the one with the EMAIL_PREFIX to start, and see how it goes? The only ones I wouldn't move out would be the database configuration properties (as they're required to actually get this package started) or anything else security related. But my goal is to remove the unsupported decouple library. Thanks! |
Hi, we're two students in EECS: 481 (Software Engineering) and we're interested in tackling this issue as part of our final project. We both have significant experience developing webapps using Django and would love to help out by integrating Constance. Is this still an issue which would be beneficial to the project? |
Sure! It looks like this was one another student in the past was interested in but didn't get anywhere. I think even if this got started with a few settings it would be appreciated. Thanks! |
We recently switched MyLA over from environment to JSON for a number of reasons, see them over here: tl-its-umich-edu/my-learning-analytics#546
We should do the same for this project to ease on deployment and improve security.
The text was updated successfully, but these errors were encountered: