Dear Freind, Plz check where your root project? Or review base on code base vs. info you ps. at the end.
On Wed, Mar 18, 2020, 12:53 Jatin Agrawal <[email protected]> wrote: > can you please share your project directory structure. > > On Tuesday, March 17, 2020 at 11:33:10 PM UTC+5:30, דביר חומרי wrote: >> >> i was following the toturial and i could'nt find why this error is accure. >> polls/urls.py' >> >> from django.urls import path >> >> from . import views >> >> urlpatterns = [ >> path('', views.index, name='index'), >> ] >> >> >> and got this error: >> >> Traceback (most recent call last): >> File "c:\Users\......polls\urls.py", line 20, in <module> >> from . import views >> ImportError: cannot import name 'views' >> >> p.s. views.py is in the same directory as urls.py >> >> ¶ <https://docs.djangoproject.com/en/3.0/intro/tutorial01/#id2>\ >> >> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a53d067e-3cf2-41b3-b075-d4c9748a8f7d%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a53d067e-3cf2-41b3-b075-d4c9748a8f7d%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP5HUWpwJZHdCKiR9K0-Gy2nHwtfsQ0DS%3D9yMJLwYpkREqkAMQ%40mail.gmail.com.

