Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In Django we can have multiple databases using multiple backends and either the same, different, or overlapping ORM models.


Indeed. I recently worked on a legacy project where I don't have the luxury to modify the old database. I ended up using Peewee [0] to access the old database, in conjunction with the normal Django based database and even wrote a simple model that use Peewee [1]. Everything works, even Django Rest Framework associated with the model.

[0]: http://docs.peewee-orm.com/en/latest/ [1]: https://stackoverflow.com/questions/57602206/mysql-gone-away...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: