Django User Profiles Deprecated

March 14, 2015

Django user profiles are deprecated in Django 1.6, but I have a legacy application that still needs to work with them. This post documents the steps used to remove this functionality, but still have the site work without making any database changes.

Change Profile Model

My existing model was ...

Installing Ansible on Ubuntu

March 6, 2015

I want to use Ansible to automate deploying software to servers. The version of Ansible in the Ubuntu repositories is old. To get a recent one, use the repository provided by rquillo.

$ sudo apt-add-repository ppa:rquillo/ansible
 More info:
Press [ENTER] to continue ...

Jenkins Null Pointer on CVS

February 10, 2015

I got this error trying to access CVS from one of my Jenkins projects:

Started by timer
Building in workspace /var/lib/jenkins/workspace/project
FATAL: null
    at hudson.scm.CVSSCM.getBranchName(
    at hudson.scm.CVSSCM.buildEnvVars(
    at hudson.model.AbstractBuild ...

Simple PostgreSQL Scripting

January 12, 2015

I wanted to write a postgresql script that would insert into two tables, and it would include the autogenerated serial from the first insert in the second. I have a master/detail relationship so the serial from the first insert (the master table) needs to be used in multiple rows ...

Python VirtualEnv on Windows

December 31, 2014

I have a need to allow another developer to work on one of my projects, and he's on windows. I develop in Linux. Unfortunately, the setup on my machine has developed over the years, so it's not easy to replicate. There's a lesson there I'm sure ...