Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[Django] Using other database than the "default" #1619
Labels
Comments
|
I'll have to double check how this can be done, but I am fairly certain that it requires a change to the models being used to specify the database they are for. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


I am trying to integrate ChatterBot into my Django application, but I would like ChatterBot to work in a database other than the default.
Django itself gives you the option of model routing when you want to use multiple databases:
https://docs.djangoproject.com/en/2.1/topics/db/multi-db/
But even following the Django standard, ChatterBot insists on running only on the default database.
My settings.py:
And my chatbot_router.py:
Someone know how to do that?