May someone please give me complete explanation about how this works:
While models.py and views.py are on the same directory on a django app, why should we use relative import:
app1:
models.py
# my models was defined here
views.py
from .models import * # this works
from app1.models import * # this also works
from models import * # ---this one does not work ---
The same will happend with admin.py
If I import
from .models import *
Then
python manage.py check
Everything is ok but with
from models import *
python manage.py check
ImportError: No module named 'models
'
I'm using now python 3.4.x and I had not this problem with 2.7.x