Cool, that makes sense
On Jan 1, 2014 5:52 AM, "ukanga" <notifications@github.com> wrote:

> In formhub/settings.py:
>
> > @@ -418,3 +419,20 @@ def configure_logging(logger, **kwargs):
> >  MONGO_CONNECTION = MongoClient(
> >      MONGO_CONNECTION_URL, safe=True, j=True, tz_aware=True)
> >  MONGO_DB = MONGO_CONNECTION[MONGO_DATABASE['NAME']]
> > +
> > +try:
> > +    from django.contrib.sites.models import Site
> > +    site = Site.objects.get(pk=SITE_ID)
> > +except Exception, e:
> > +    SITE_NAME = 'example.com'
> > +    print e
> > +else:
> > +    SITE_NAME = site.name
>
> Mainly because I want to maintain KoBoCAT and OnaData in that case as
> opposed to having it kobocat and onadata, I wanted to reuse SITE_NAME,
> and not have a different settings variable for this.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/onaio/onadata/pull/76/files#r8605694>
> .
>