User doesn't exists and no redirect to created tenant in django project

蓝咒 提交于 2019-12-08 15:24:29

re: User doesn't exist error - According to your signup view function, the user record is getting created in the public schema. But when you try to login to test.localhost, test schema is being used for all the DB queries. You can switch schemas like -

from tenant_schemas.utils import schema_context

with schema_context(customer.schema_name):
    # create your user here.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!