0👍
✅
In my case, replacing __ str__ method with __ unicode__ helped, but there are many factors at play here, as @bruno-desthuilliers said
# def __str__(self):
# return str(self.id) +': ' + self.title
def __unicode__(self):
return u'%s: %s' % (self.id, self.title)
- [Django]-Using Python 3.7 on Pycharm gives me: "Error: Django is not importable in this environment"
Source:stackexchange.com