Move settings import to top in models.py