Update settings.py for django 1.5.4 compatibillity