Django logs

Some minor bug fixes from mathics.net django logs