What if this list of sites needs to be changed dynamically without app restart (multitenancy)?
On Fri, Jan 29, 2016 at 12:45:02PM -0800, Tim Graham wrote: > In another thread about adding a "scheme" field to the Site model [1], I > floated the idea of moving the data stored by the Site model into a setting: > > I've sometimes thought that the Site model violates the principle that you > shouldn't put configuration in your database. I guess there's some > usefulness to having a ForeignKey to the site, but... would it be feasible > to offer a SITES setting that could be used instead? e.g. > > SITES = { > 1: {'scheme': 'http', 'domain': example.com, 'name': 'My Site'}, > ... > } -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/20160130070141.GA2770%40otg.dm. For more options, visit https://groups.google.com/d/optout.