Hacker News new | ask | show | jobs
by leetrout 1922 days ago
Ah sorry that wasn’t clear.

We had a PHP app with MySQL and built out our new user management and billing in Django with Postgres.

I created SQLAlchemy models to map the PHP MySQL tables to Python, implemented the Django password hashing steps in PHP and let both apps access both databases as we slowly ported things to Django.

It worked very, very well even given the complexity. And running migrations all from Python kept it all in one spot conceptually.

1 comments

Why didn't you just make Django models for the PHP MySQL tables?
This was almost 7 years ago so I honestly don’t remember the context of the decision only the tooling I wrote.