I've created an model Girl
When I open python console and write from .models import Girl
I get an error:
>>> from .models import Girl
Traceback (most recent call last):
File "<console>", line 1, in <module>
KeyError: "'__name__' not in globals"
What do I do?
Did you try putting the app name before ".models"?
>> from [app_name].models import Girl
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With