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
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:
>
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
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
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
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
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
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
8 matches
Mail list logo