In models.py you could write somethink like this as a workaround

```python
# import config to models.py for compatibility with old behaviour.  
from .api import config