Im following a postgresql tutorial and in the video he does
from . import models
then when i try it i can an error
i did exactly what he did in the video and i get this error
from . import models
ImportError: attempted relative import with no known parent package
does anyone know why?
The ImportError message is stating that Python expected a module to import models
from, but didn't find it. Are you working from the same directory that the instructor is working from?
I'm not familiar with the tutorial, but given the import, it seems you're also learning Django. If so, are you sure you have Django installed?
As a general tip, in case you are indeed new to Stack Overflow, you may find it helpful to copy and paste the error message you're seeing, like this.
You might find these questions' answers helpful as well: