Microwaved Meatloaf
  • Home
Subscribe
Tagged

django

A collection of 2 posts

Rebuilding Django Migrations
django

Rebuilding Django Migrations

I have a Django project with a long, long, history.  Its accumulated far more migrations than I care to admit (or maintain.)  Applying migrations to a new database takes 30+ seconds on good hardware. With a dozen+ apps, all the depends_on spaghetti you would expect exists, with custom code

  • Andrew Backer
Andrew Backer Jan 9, 2020 • 3 min read
Route: a consistent path helper for Django & DRF
rest-framework

Route: a consistent path helper for Django & DRF

I find one of the most frustrating parts of working with DRF is dealing with Django routing when combined with ViewSets and APIViews.  All those calls to as_view and SimpleRouter are a hassle, and make the URL hierarchy more difficult to see at a glance.   The fact that include(

  • Andrew Backer
Andrew Backer Sep 20, 2019 • 3 min read
Microwaved Meatloaf © 2022
Powered by Ghost