Re: ValueError: Attempted relative import in non-package

2018-07-08 Thread Melvyn Sopacua
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

Re: ValueError: Attempted relative import in non-package

2018-07-08 Thread mottaz hejaze
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

Re: ValueError: Attempted relative import in non-package

2018-07-08 Thread Swati Pushp
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

ValueError: Attempted relative import in non-package

2018-07-08 Thread darkblakhood
/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