I’m currently working in an environment where the development setup consists of 6 individual VirtualBox VMs handled by vagrant. This could be a problem on devices with low amount of memory, such as Macbook Air …
This post describes a setup with a single VM which hosts all other VMs as LXC containers with minimal overhead. The tricky part here is the network setup, so that your developer machine is in the same network as the containers, which then allows direct access to and from the containers.
Continue reading
git
the distributed version control system built for the Linux kernel is widely used
nowadays and has been adapted by more and more dev-teams. Developing with git
in a small team requires a different workflow to push/pull/merge/rebase
without any problems. This post describes a minimal workflow, which builds up on
feature branches on which the developer implements their changes. The
master
-branch tracks the remote changes and the feature branch will be merged
into master
if the work is done.
In Django you will normally work with forms and models. A form instance holds
a reference (form_instance.fields
) to his corresponding fields as a dict
.
On model instances this dict
does not exist. This post describes a solution.
Als ersten Beitrag im Blog, gleich mal ein recht interessantes Thema, nämlich das dynamische Hinzufügen von Methoden zu bestehenden Klassen. Warum man das machen möchte und verschiedene Möglichkeiten dies umzusetzen, beschreibt dieser Beitrag.