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
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
בתאריך יום שלישי, 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
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
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 = [
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
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
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'),
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 = [
>
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
10 matches
Mail list logo