Closed mdlincoln closed 5 years ago
This is an interesting one. For Domain we want it to be unique... wondering if the best solution is for path based to assign the domains automatically...
The domain is part of the django built in django.contrib.sites.models.Site
model.
We could simply stop using the sites framework when the settings are configured with URL_CONFIG = "path"
, ignoring the journal domain.
This would mean that when you use path
for URL_CONFIG
, you can't have different domains for different journals, but it feels like that is the entire purpose of using domain
for URL_CONFIG
.
While loading data from two journals into a Janeway instance with
URL_CONFIG = 'path'
, we wanted to runalter_domains
to shift the domains of two journals. This succeeded with the first journal, but when trying to alter the domain of the second, it threw a unique constraint failure. While I'd expect this error forURL_CONFIG = 'domain'
, when usingpath
we'd very much want the domain to be the same.(I've only tested this problem when using an sqlite backend)