Discussion:
Problem Basic
David Figueroa
2018-12-05 01:55:06 UTC
Permalink
*Na criação de meu primeiro projeto django- estou tentando criar minha
primeira aplicação (polls) através de uma view como mostrado abaixo.estou
encontrando o erro mostrado na imagem do Anexo. Alguém poderia me ajudar?*
Estou seguindo o passo a passo sugerido em.
(https://docs.djangoproject.com/pt-br/1.11/intro/tutorial01/) polls/view.py
Create your views here.
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/aeee4a25-8c43-41ce-8ed0-744107f61cdb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thiago Brito
2018-12-05 10:24:46 UTC
Permalink
Fala David, conseguiu?

tenta mudar o caminho
url(r'^polls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),

pra isso

from django.urls import path
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),




Em ter, 4 de dez de 2018 às 23:55, David Figueroa <
Post by David Figueroa
*Na criação de meu primeiro projeto django- estou tentando criar minha
primeira aplicação (polls) através de uma view como mostrado abaixo.estou
encontrando o erro mostrado na imagem do Anexo. Alguém poderia me ajudar?*
Estou seguindo o passo a passo sugerido em. (
https://docs.djangoproject.com/pt-br/1.11/intro/tutorial01/)
polls/view.py
Create your views here.
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
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/aeee4a25-8c43-41ce-8ed0-744107f61cdb%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/aeee4a25-8c43-41ce-8ed0-744107f61cdb%40googlegroups.com?utm_medium=email&utm_source=footer>
.
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/CALvrLTuVT9CO6Z6HAThrfy30oBuxAW%2Borgp7YK%3DM%3Dd8MCDMzhA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
David Figueroa
2018-12-05 12:25:20 UTC
Permalink
fiz a mudança que sugeristes e nada, continua dando o mesmo erro!

Em quarta-feira, 5 de dezembro de 2018 09:16:41 UTC-3, Thiago Brito
Post by Thiago Brito
Fala David, conseguiu?
tenta mudar o caminho
url(r'^polls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),
pra isso
from django.urls import path
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),
Post by David Figueroa
*Na criação de meu primeiro projeto django- estou tentando criar minha
primeira aplicação (polls) através de uma view como mostrado abaixo.estou
encontrando o erro mostrado na imagem do Anexo. Alguém poderia me ajudar?*
Estou seguindo o passo a passo sugerido em. (
https://docs.djangoproject.com/pt-br/1.11/intro/tutorial01/)
polls/view.py
Create your views here.
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
<javascript:>.
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/aeee4a25-8c43-41ce-8ed0-744107f61cdb%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/aeee4a25-8c43-41ce-8ed0-744107f61cdb%40googlegroups.com?utm_medium=email&utm_source=footer>
.
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/a30e864c-04dc-4d22-a59f-8e9c9d41ca20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thiago Brito
2018-12-05 12:37:25 UTC
Permalink
Cara, tenta usar esta versão
https://docs.djangoproject.com/pt-br/2.1/intro/tutorial01/
A que você está utilizando é antiga

Em ter, 4 de dez de 2018 às 23:55, David Figueroa <
Post by David Figueroa
*Na criação de meu primeiro projeto django- estou tentando criar minha
primeira aplicação (polls) através de uma view como mostrado abaixo.estou
encontrando o erro mostrado na imagem do Anexo. Alguém poderia me ajudar?*
Estou seguindo o passo a passo sugerido em. (
https://docs.djangoproject.com/pt-br/1.11/intro/tutorial01/)
polls/view.py
Create your views here.
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
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/aeee4a25-8c43-41ce-8ed0-744107f61cdb%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/aeee4a25-8c43-41ce-8ed0-744107f61cdb%40googlegroups.com?utm_medium=email&utm_source=footer>
.
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/CALvrLTvWLfr074PiinExC4knnDssUKeFSheKYupkzaU3b9a32Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...