Import Error :cannot Import Name Get_model
File 'C:\Python27\Lib\site-packages\file_picker\forms.py,line 5 in from django.db.models import Q,get_model ImportError:cannot import name get_model I am using dja
Solution 1:
Try using django.apps
instead:
from django.appsimport apps
apps.get_model('Model')
https://docs.djangoproject.com/en/dev/ref/applications/#django.apps.AppConfig.get_model
Post a Comment for "Import Error :cannot Import Name Get_model"