Discussion:
Problem
(too old to reply)
David Figueroa
2018-12-05 12:30:50 UTC
Permalink
David Figueroa *por *
<https://support.google.com/mail/answer/1311182?hl=pt-BR> googlegroups.com
[image: Anexos]09:17 (Há 0 minutos)
para Django
In creating my first django project- I'm trying to create my first
application (polls) through a view as shown below.
I'm finding the error shown in the image in the Annex.
can anybody help me?
I'm following the step-by-step suggested in (
https://docs.djangoproject.com/pt-br/1.11/intro/tutorial01/)
*polls/view.py *
from django.http import HttpResponse


def index(request):
return HttpResponse("Hello, world. You're at the polls index.")
* pols/urls*
from django.conf.urls import url

from . import views

urlpatterns = [
url(r'^$', views.index, name='index'),
]
*site1/urls*
from django.conf.urls import include, url
from django.contrib import admin

urlpatterns = [
url(r'^polls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/634d292d-b2ab-44a1-83c8-bb9d40e89084%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
kennedy kay
2018-12-05 12:40:12 UTC
Permalink
Hi David,
I suggest you look at this git project

Perhaps it could help
https://github.com/divio/django-polls/tree/master/polls

Cheers!
Post by David Figueroa
David Figueroa *por *
<https://support.google.com/mail/answer/1311182?hl=pt-BR> googlegroups.com
[image: Anexos]09:17 (Há 0 minutos)
para Django
In creating my first django project- I'm trying to create my first
application (polls) through a view as shown below.
I'm finding the error shown in the image in the Annex.
can anybody help me?
I'm following the step-by-step suggested in (
https://docs.djangoproject.com/pt-br/1.11/intro/tutorial01/)
*polls/view.py *
from django.http import HttpResponse
return HttpResponse("Hello, world. You're at the polls index.")
* pols/urls*
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
]
*site1/urls*
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^polls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8a593299-b6c1-4d20-a643-1f5daabbf0f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ryan Nowakowski
2018-12-05 13:14:47 UTC
Permalink
Perhaps go back through the tutorial carefully double checking each step. Did you add polls to settings.py? Is your polls/urls.py file named correctly?
Post by David Figueroa
David Figueroa *por *
<https://support.google.com/mail/answer/1311182?hl=pt-BR>
googlegroups.com
[image: Anexos]09:17 (Há 0 minutos)
para Django
In creating my first django project- I'm trying to create my first
application (polls) through a view as shown below.
I'm finding the error shown in the image in the Annex.
can anybody help me?
I'm following the step-by-step suggested in (
https://docs.djangoproject.com/pt-br/1.11/intro/tutorial01/)
*polls/view.py *
from django.http import HttpResponse
return HttpResponse("Hello, world. You're at the polls index.")
* pols/urls*
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
]
*site1/urls*
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^polls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/634d292d-b2ab-44a1-83c8-bb9d40e89084%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/01476003-08A2-46E4-86E6-E96842D63BF7%40fattuba.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...