代码拉取完成,页面将自动刷新
dvadmin 租户插件
python manage.py makemigrations
python manage.py migrate_schemas --shared
# create your first real tenant
from plugins.dvadmin_tenant_backend.backend.models import Client, Domain
# create your first real tenant
tenant,_ = Client.objects.get_or_create(schema_name='public', name='demo租户', paid_until='2014-12-05', on_trial=True)
# migrate_schemas automatically called, your tenant is ready to be used!
# Add one or more domains for the tenant
domain = Domain()
domain.domain = 'public.kfm168.com' # don't add your port or www here!
domain.tenant = tenant
domain.is_primary = True
domain.save()
from customers.models import Client, Domain
# create your public tenant
tenant = Client(schema_name='public',
name='Schemas Inc.',
paid_until='2016-12-05',
on_trial=False)
tenant.save()
# Add one or more domains for the tenant
domain = Domain()
domain.domain = 'demo.django-vue-admin.com' # don't add your port or www here! on a local server you'll want to use localhost here
domain.tenant = tenant
domain.is_primary = True
domain.save()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。