Swiftkind
Migrating it Right: The Basics

Now if ya’ll ever tried developing an app on Django surely you have encountered these thingies called “migrations”. Basically migrations are a bunch of scripts used to, well as the name states, “migrate” the database from one state to the next. I’m not going through an in depth explanation of ...

5 Mins read
Carl Shemmuel Ipanag

Developer

Migrating it Right: Handling Migrations

We now get our hand on a more advanced topic of migrations. But before that, lemme summarize the things discussed on the last blog with a short bullet list to get straight to the point:Migrations are responsible for making changes in the database. And this includes adding, a...

5 Mins read
Carl Shemmuel Ipanag

Developer

Django and Fixtures: Pre-populating Database With Initial Data

Sometimes we want to pre-populate our database for a lot of different reasons. These data are maybe constants that needs to be loaded at the start of the django app or maybe we need these data to always have the same primary key (pk) throughout the start of the django app.Whatever ...

5 Mins read
Aellivon Kyle Sub

Developer

Django Common Info Model

There are times that we want fields to exist on a lot of models. Like the fields “is_active”, “updated”, and “created”. These are common info that sometimes we want to exist on every model.We could declare it on every model like this:class Randomizer(models.Model...

5 Mins read
Aellivon Kyle Sub

Developer

Want to work with us?
business@swiftkind.com