Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try to use multiple database but get exception #87

Closed
zhangchunlin opened this issue Sep 3, 2018 · 1 comment
Closed

try to use multiple database but get exception #87

zhangchunlin opened this issue Sep 3, 2018 · 1 comment

Comments

@zhangchunlin
Copy link
Contributor

settings:

[MODELS]
gerritsyncsession = 'gitfetchdata.models.GerritSyncSession', 'external'

Traceback (most recent call last):
  File "/home/zhangclb/oss/uliweb/uliweb/core/dispatch.py", line 112, in call
    _f(sender, *args, **kw)
  File "/home/zhangclb/oss/uliweb/uliweb/contrib/orm/__init__.py", line 63, in after_init_apps
    raise Exception("Model path should be a string but %r found" % model_path)
TypeError: not all arguments converted during string formatting

https://github.com/limodou/uliweb/blob/master/uliweb/contrib/orm/__init__.py#L62

So is there any problem with my settings?

@zhangchunlin
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant