why are you using *from hello.views import index* instead of *from . import views*
On Mon, Jan 4, 2021 at 6:54 PM Gasar Iyali <gasariy...@gmail.com> wrote: > Hi > Please I need your help. > I have just installed django and when I try to run django I get this error > message and nothing comes up in my browser. > This is the error message that I get in the command prompt > > !*<<<(env) C:\Users\Documents\Learn > Python\django\my_django_work\my_django_work\urls.py", line 19, in <module> > from hello.views import index > ImportError: cannot import name 'index' from 'hello.views'>>>!! > > Thank you > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/cec9f80a-7d69-4702-8b4c-37817fc6caean%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/cec9f80a-7d69-4702-8b4c-37817fc6caean%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABz7kDRBfCJ05Xic3Qg01EUbxhpWmMmYOtpB0ZvOyGTkG8gH4Q%40mail.gmail.com.