1👍
✅
You have to do from django.conf import settings
first. After that you can import your models and work with them like usually.
Source:stackexchange.com