Try from polls import views and see if that solves the problem. Cheers

On Tue 17. Mar 2020 at 20.02, דביר חומרי <dvir...@gmail.com> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9c1f34af-2f3f-4a29-964f-056dd5f74ac2%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/9c1f34af-2f3f-4a29-964f-056dd5f74ac2%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/CAAipwd_v8dyK-PG%3D6Rv4jSwP1p7ikhXShPqnFYhdLybzQ13HTw%40mail.gmail.com.

Reply via email to