updated to use newer django db config (closed turnkeylinux/tracker#76)
bugfixed for newer django version