From 1b32b2f614c5c45f4a0f270ae7273c2d8e16617b Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Thu, 8 Oct 2020 12:45:06 +0200 Subject: [PATCH] Fixed #32083 -- Added link back to migrating section in multi-db docs example. --- docs/topics/db/multi-db.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/topics/db/multi-db.txt b/docs/topics/db/multi-db.txt index f4357642e67..9601830b746 100644 --- a/docs/topics/db/multi-db.txt +++ b/docs/topics/db/multi-db.txt @@ -76,6 +76,8 @@ If you attempt to access a database that you haven't defined in your :setting:`DATABASES` setting, Django will raise a ``django.db.utils.ConnectionDoesNotExist`` exception. +.. _synchronizing_multiple_databases: + Synchronizing your databases ============================ @@ -402,7 +404,8 @@ setting listed the two routers in the other order, catch-all nature of the PrimaryReplicaRouter implementation would mean that all models would be available on all databases. -With this setup installed, lets run some Django code:: +With this setup installed, and all databases migrated as per +:ref:`synchronizing_multiple_databases`, lets run some Django code:: >>> # This retrieval will be performed on the 'auth_db' database >>> fred = User.objects.get(username='fred')