Hello, please check your polls/views.py file and make sure you have defined
an index function that should somewhat look like this:
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello.")
On Tuesday, October 2, 2018 at 5:10:25 PM UTC+3, ginost7 wrote:
>
> now i
now i get a different error!!!
path('', views.index, name='index'),
AttributeError: module 'polls.views' has no attribute 'index'
On Tuesday, 2 October 2018 14:24:35 UTC+1, ginost7 wrote:
>
> Hello
>
> I am trying the django/mysite/polls tutorial.
>
> After typing, actually copying and pasting
Hello apparently in polls/urls.py i changed the dot :
from django.urls import path
from .import views # PLEASE NOTE THERE IS NO SPACE BETWEEN DOT AND IMPORT!!!
On Tuesday, 2 October 2018 14:46:52 UTC+1, ginost7 wrote:
>
>
>
> On Tuesday, 2 October 2018 14:29:12 UTC+1, Joel wrote:
>>
>> Well, what
On Tuesday, 2 October 2018 14:29:12 UTC+1, Joel wrote:
>
> Well, what does /home/gino/djangoDEV/mysite/polls/urls.py contain?
>
I am just following the first django app tutorial
mysite/polls/urls.py contains the following code:
from django.urls import path
from . import views
urlpatterns =
Well, what does /home/gino/djangoDEV/mysite/polls/urls.py contain?
On Tue, 2 Oct 2018 at 18:55, 'ginost7' via Django users <
django-users@googlegroups.com> wrote:
> Hello
>
> I am trying the django/mysite/polls tutorial.
>
> After typing, actually copying and pasting this:
>
> from django.cont
Hello
I am trying the django/mysite/polls tutorial.
After typing, actually copying and pasting this:
from django.contrib import adminfrom django.urls import include, path
urlpatterns = [
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),]
Running this command ( i am
6 matches
Mail list logo