#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 Mariusz Felisiak):
> 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.
This section already warns at the very beginning:
> ''"**Example purposes only! ''
>
> ''**This example is intended as a demonstration** of how the router
infrastructure can be used to alter database usage. **It intentionally
ignores some complex issues** in order to demonstrate how routers are
used.''
>
> ''**This example won’t work if any** of the models in myapp contain
relationships to models outside of the other database. Cross-database
relationships introduce referential integrity problems that Django can’t
currently handle.''
Of course, if you have a suggestion for clearer wording, please submit PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/34121#comment:3>
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/010701841413bba3-b58c267b-abef-433d-8991-4291fbf7af92-000000%40eu-central-1.amazonses.com.