Hi, I'm using django sites framework.
I've a model with a OneToOneField to Site model. This way the admin users can customize each site attributes from the admin panel.
class CustomSite(models.Model):
site = models.OneToOneField(Site)
email_host_user = models.EmailField()
...Some of these fields are actually values that should be used in the settings file, like EMAIL_HOST_USER.
How can I use these values in the settings file of the custom sites? is this the correct approach?
On Tuesday 06 June 2017 06:42:07 Pablo Camino Bueno wrote:
> Some of these fields are actually values that should be used in the
> settings file, like EMAIL_HOST_USER.
>
>
> How can I use these values in the settings file of the custom sites?
> is this the correct approach?