我正在使用django-tenant-schemas并下载了GitHub示例项目,但是当我生成随机用户时,它们仅保存在公共模式中。我按照示例教程的说明创建了子域(tenant2.trendy-sass,tenant2.trendy-sass),并将其添加到hosts文件中。我正在使用Django 2.0和PostgresSql10。架构已正确创建。在第一个版本中,我查看的是index_tent.html,而不是index_puclic.html。
我仅查看psycopg2的下一个警告:
/Users/Fernando/miniconda3/envs/cookiecutter/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
我很困惑,应该可以使用。