3 ms·
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
by ericvanular 6y 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
- leetrout 6y agoAh 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.