Ponytech

Technology for ponies

May 24, 2019

Django deployment with Dokku

After recently having migrated our previous Django deployment stack to Dokku, we are sharing our experience in this post.

Dokku

Dokku is Platform As A Service (PaaS) solution you can host on your own server. It is similar to Heroku but self-hosted. They share the same buildpacks used to build applications.

Installation is pretty straightforward and well explained on the official documentation. In this tutorial we assume you have a ...

read more

Aug 01, 2016

Django 1.10 removed migrate list option

Django 1.10 removed the very helpful --list (or -l) option from the manage migrate command. This option was deprecated since 1.8. But don't worry, you can have the same output using:

$ ./manage.py showmigrations

You can also see in which order your migrations will be applied using the --plan option:

$ ./manage.py showmigrations --plan
read more

Jun 12, 2015

Convert a Foreign Key to Many to Many using Django 1.7 buit-in migrations

Django 1.7 comes with a built-in migration system for your data model, replacing the need of a third party module, usually South. This system is pretty good at doing a lot of stuff automatically, but there are some situations where you need to get your hands dirty, especially when there is data migration involved.

This guide will show you, step by step, how to convert a Foreign Key field ...

read more
Next → Page 1 of 4