Hacker News new | ask | show | jobs
by ericvanular 1922 days ago
Big fan of SQLAlchemy & Alembic as well - I had originally assumed that these tools were for people using Flask and the like. Curious how you use it with Django? Django has a built in migration manager or so I thought
1 comments

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.

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.