Django implementation of DDTSS