Try to remove dependency on models (either a module imports models, or models import the module, not both).