Closed Archmonger closed 1 year ago
@numpde would you be willing to help review this? I'm just not familiar enough with Django to understand the details here. I can cover a high-level review though.
I'd like to get these system checks out ASAP, so I will merge this. If you decide to provide a post-merge review I will incorporate any changes in a follow up PR.
By submitting this pull request you agree that all contributions to this project are made under the MIT license.
Description
By default, all databases registered within Django are configured with identical columns. There may be some edge cases (#152) where this can be problematic. In order to to stop
ComponentSession
from existing on databases other than the user configuredREACTPY_DATABASE
, we need to create a Database Router.Changelog
reactpy_django.database.Router
must now be registered insettings.py:DATABASE_ROUTERS
wheneversettings.py:REACTPY_DATABASE
is set.Checklist:
Please update this checklist as you complete each item: