Post #2619559
2026-05-04 07:54 UTC
@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.
Replies (1)
-
@markwalker@fosstodon.org 2026-05-04 21:19
@webology@mastodon.social maybe this conf env module needs it's own forum post to drum up some support. Easier to implement and the fact every man & his dog has a third party package to do this tells us it's well used by many.