Django 1.7+ migrations: Altering a field to be a ForeignKey

Django 1.7+ migrations: Altering a field to be a ForeignKey

I’m migrating an existing project written in PHP to Django. The existing project is using MySQL and it’s missing some indexes and foreign keys, but there’s also existing data so the normal Django migration file cannot be trusted. I’ll explain why….

Dave

About David Parlevliet

Dave is long time developer with a passion toward teaching. He divides his time between his wife, her cat and his projects. He recently started using twitter so make sure to follow him!

Django: Custom decorator with optional kwargs

Django: Custom decorator with optional kwargs

After spending the last 3 years in PHP (not by choice) I’m happily back to Django and working toward a PHP-free-life. Not that PHP is terrible, I believe it has a place in the landscape, I just personally do not…

Dave

About David Parlevliet

Dave is long time developer with a passion toward teaching. He divides his time between his wife, her cat and his projects. He recently started using twitter so make sure to follow him!