bugfixes for django sites