#34121: Multi Databases documenation example doesn't work
-------------------------------------+-------------------------------------
     Reporter:  Jan Przychodniak     |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  4.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Jan Przychodniak):

 > It's ​documented on the same page:
 >> "your routers must handle the names of all apps in INSTALLED_APPS
 before you migrate. See ​Behavior of contrib apps for information about
 contrib apps that must be together in one database."

 It is, but I never reached this part, because I got stuck earlier in the
 example. When the docs asked me to:

 > With this setup installed, and all databases migrated as per
 Synchronizing your databases, lets run some Django code:

 Which as far as I understand I need to perform migrations first to be able
 to run the code. Which migrations I cannot perform based on the example
 presented.

 I would kindly suggest the example could be updated to mention that you
 need to include all the contrib apps in the same database before asking me
 to perform the migrations based on the example which never included an app
 like "django.contrib.admin" in the router.

 Mind you, 'django.contrib.admin' is included in INSTALLED_APPS by default.
 I didn't change anything in the settings apart from the piece of code I
 sent here.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34121#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070184140468fd-a005a2f0-c665-44cb-8467-f1a282e9ad84-000000%40eu-central-1.amazonses.com.

Reply via email to