I created a Girl model. When I open the python console and write, from .models import Girl
I get an error message:
>>> from .models import Girl
Traceback (most recent call last):
File "<console>", line 1, in <module>
KeyError: "'__name__' not in globals"
What should I do?
source
share