Skip to content

iiasa/threads

Repository files navigation

Comment threads and annotations for ACCMS and otherwise

The content management system of the Accelerator or otherwise can back multiple websites. To support comment threads or annotations on a web component such as a chart, there is need for a multi-tenant service. This repo defines that service.

Making first public tenant

from tenants.models import Client, Domain

tenant = Client(name="Main", schema_name="public")
Domain.objects.create(
    domain="admin.localhost",
    tenant=tenant,
    is_primary=True
)

Make tenant superuser

from django_tenants.utils import schema_context
from django.contrib.auth import get_user_model

User = get_user_model()

with schema_context('tenant1'):
    User.objects.create_superuser(
        username='admin',
        email='[email protected]',
        password='admin123'
    )

About

multi tenant comments threads service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •