Post #2619558
2026-05-04 00:25 UTC
@markwalker@fosstodon.org Nice writeup.
The only "draw an Owl" part of me is how Django knows/cares about the data classes and does something with them.
Personally, if we change anything about settings, I'd like to see first-party ENV support too. Especially with DATABASE_URL support since that's been an unofficial standard for so long.
Replies (1)
-
@markwalker@fosstodon.org 2026-05-04 07:54
@webology@mastodon.social I think the conf module would define the data classes for the "settings groups". Then devs import these into their settings to setup their projects. I do love env vars. django.conf.env could read from the env, env files, parse variables, then settings might look more like; ALLOWED_HOSTS = env.list('ALLOWED_HOSTS', default=['localhost']) DATABASES = { 'default': env.db('DATABASE_URL', default='sqlite:///db.sqlite3') } With potential for querystring mapping db options.