making demo compatible with older versions of django