fix apps.py for django 1.7