On zondag 8 juli 2018 08:40:03 CEST darkblakh...@gmail.com wrote:
> Traceback (most recent call last):
> File "/root/Desktop/website/movies/views.py", line 4, in
> from .models import mdb
> ValueError: Attempted relative import in non-package
You should really create
make sure that __init__.py file exists and not deleted
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to thi
en i try to import class from model.py give me error
>
> from .models import mdb
> output:
>
> Traceback (most recent call last):
> File "/root/Desktop/website/movies/views.py", line 4, in
> from .models import mdb
> ValueError: Attempted relative import in non-pa
/root/Desktop/website/movies/views.py", line 4, in
from .models import mdb
ValueError: Attempted relative import in non-package
any ideas ? thanks in advance
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
4 matches
Mail list logo