Re: AttributeError: module 'polls.views' has no attribute 'index' error in Django

2024-12-07 Thread Олександр Рябов
Guys, thanks for the help everyone but I just used vim and rewrote the code again) On Thursday, 5 December 2024 at 15:02:36 UTC+3 Олександр Рябов wrote: > Hello! I'm facing an issue when running my Django project. I get the > following error: > > AttributeError: module 'polls.views' has no attr

Re: AttributeError: module 'polls.views' has no attribute 'index' error in Django

2024-12-06 Thread Abduljelil Zubairu
is your VS Code on auto save On Thursday, December 5, 2024 at 1:02:36 PM UTC+1 Олександр Рябов wrote: > Hello! I'm facing an issue when running my Django project. I get the > following error: > > AttributeError: module 'polls.views' has no attribute 'index' > > I've checked the following: >

Re: AttributeError: module 'polls.views' has no attribute 'index'

2021-07-26 Thread DJANGO DEVELOPER
as you mentioned that you're using django 3.2 but your urls.py file is following the pattern of django 1.7. use your urls.py this way : path('your polls url here', views.index, name='index') On Mon, Jul 26, 2021 at 6:45 PM Zain wrote: > Had the same issue. > > Solved, make sure you run each edit

Re: AttributeError: module 'polls.views' has no attribute 'index'

2021-07-26 Thread Zain
Had the same issue. Solved, make sure you run each edited python file during the tutorial. I guess it needs to update. All I know is this fixed the issue. On Monday, April 19, 2021 at 2:07:34 AM UTC+10 avi.me...@gmail.com wrote: > I followed the same tutorial on 17th April 2021 with Python 3.9

Re: AttributeError: module 'polls.views' has no attribute 'index'

2021-04-22 Thread David Nugent
On Mon, Apr 19, 2021 at 2:07 AM Avi Mehenwal wrote: > I followed the same tutorial on 17th April 2021 with Python 3.9.2 and > Django 3.2 and have exactly the same problems as mentioned above. > > path('', views.index, name='index'), > AttributeError: module 'polls.views' has no attribute

Re: AttributeError: module 'polls.views' has no attribute 'index'

2021-04-18 Thread Avi Mehenwal
I followed the same tutorial on 17th April 2021 with Python 3.9.2 and Django 3.2 and have exactly the same problems as mentioned above. path('', views.index, name='index'), AttributeError: module 'polls.views' has no attribute 'index' any help on how can I debug this? I am a django noob

Re: AttributeError: module 'polls.views' has no attribute 'index'

2017-04-19 Thread Billy Lin
Thanks for your reploy. Actually I followed the tutorial exactly. My polls/views.py has: from django.http import HttpResponse def index(request): return HttpResponse("Hello, world. You're at the polls index.") My polls/urls.py has: from django.conf.urls import url from . import views u

Re: AttributeError: module 'polls.views' has no attribute 'index'

2017-04-19 Thread m712 - Developer
You didn't give us enough info, but I am thinking that you don't have an index() function in your polls/views.py. Start the tutorial from the beginning and follow it closely. On Apr 19, 2017 4:17 PM, Billy Lin wrote:I'm following the getting started tutorial 01 and running into issues after creati