5đź‘Ť
âś…
Instead of writing “from .models import Post” you should write “from .models.Post import Post”.
First “Post” is a modulename (file name), second one is a class name.
👤MihanEntalpo
Source:stackexchange.com
5đź‘Ť
Instead of writing “from .models import Post” you should write “from .models.Post import Post”.
First “Post” is a modulename (file name), second one is a class name.