Re: cant import views

2020-03-18 Thread Sai Sandeep Rayanuthala
There is no function index in views. That is the problem. Create a function named index in views. On Wed, 18 Mar 2020, 22:30 Laurent Gattegno, wrote: > I think the problem is inside the views.py file. It looks like python > doesnt find views.index and the problem may be the index > Laurent Gatte

Re: cant import views

2020-03-18 Thread Laurent Gattegno
I think the problem is inside the views.py file. It looks like python doesnt find views.index and the problem may be the index Laurent Gattegno ‪Le mer. 18 mars 2020 à 12:58, ‫דביר חומרי‬‎ a écrit :‬ > > > בתאריך יום שלישי, 17 במרץ 2020 בשעה 20:03:10 UTC+2, מאת דביר חומרי: >> >> i was following

Re: cant import views

2020-03-18 Thread דביר חומרי
בתאריך יום שלישי, 17 במרץ 2020 בשעה 20:03:10 UTC+2, מאת דביר חומרי: > > 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

Re: cant import views

2020-03-17 Thread Integr@te System
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 wrote: > can you please share your project directory structure. > > On Tuesday, March 17, 2020 at 11:33:10 PM UTC+5:30, דביר חומרי wrote: >> >> i wa

Re: cant import views

2020-03-17 Thread Jatin Agrawal
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 = [

Re: cant import views

2020-03-17 Thread Ganesh Babu
Hi , your file is not saved into correct place ‪On Tue, Mar 17, 2020 at 11:31 PM ‫דביר חומרי‬‎ 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

Re: cant import views

2020-03-17 Thread PRAKASH SINGH
Import error can be due to location of file or sometimes we forget to save the file after creating it so make sure taht the file is at right location and is saved. On Wed, Mar 18, 2020 at 1:16 AM surendra bhaskar < surendra.bhaska...@siesgst.ac.in> wrote: > There is some error in function > > On

Re: cant import views

2020-03-17 Thread surendra bhaskar
There is some error in function On Tue, 17 Mar, 2020, 11:31 PM דביר חומרי, 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'),

Re: cant import views

2020-03-17 Thread victor awakan
Try from polls import views and see if that solves the problem. Cheers On Tue 17. Mar 2020 at 20.02, דביר חומרי 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 = [ >

cant import views

2020-03-17 Thread דביר חומרי
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", l