Tuesday, October 23, 2018

Re: Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

You are welcome.
I suggest you go through the documentation & guide carefully and work accordingly..
I learned the same way!!


On Wednesday, October 24, 2018 at 8:17:06 AM UTC+5:30, Bugs Bunny wrote:
i use this and work, thanks (y) 

On Tue, Oct 23, 2018 at 1:04 AM Manjunath <dmanju....@gmail.com> wrote:
Your project urls are set to address starting with admin & polls.

You can browse localhost:8000/polls/

On Monday, October 22, 2018 at 11:06:22 PM UTC+5:30, Bugs Bunny wrote:
Regards for the answers this is my input

On Sun, Oct 21, 2018 at 8:15 AM Motaz Hejaze <trapp...@gmail.com> wrote:
first , no spaces are allowed in URLS
as  Manjunath said
replace path(' ', views.index, name='index') with path('', views.index, name='index') in your polls/urls.py and check the result.

second , run the server 
python manage.py runserver 

third check the url
go to http://127.0.0.1:8000/polls

On Sun, Oct 21, 2018 at 1:56 PM Manjunath <dmanju....@gmail.com> wrote:
I think you have a space in your url path.

replace path(' ', views.index, name='index') with path('', views.index, name='index') in your polls/urls.py and check the result.

On Friday, October 19, 2018 at 4:59:10 PM UTC+5:30, Bugs Bunny wrote:
Greetings django team, I'm a newbie with this framework but I have experience with python, I did the first tutorial and it throws me a 404 error, I saw that in the previous versions we used a r'formated 'string and indicated the beginning ^ and the end $ but in version 2.1 is no longer used, check and I do not know where the error comes from, I will leave some captures, the IRC room is down I hope answers from this wonderful community

tuto/urls.py
 from django.contrib import admin
 from django.urls import include, path

 urlpatterns = [
     path('polls/', include('polls.urls')),
     path('admin/', admin.site.urls),
 ]





polls/urls.py
from django.urls import path
from . import views

urlpatterns = [
     path(' ', views.index, name='index'),
 ]

polls/views.py
from django.shortcuts import render
from django.http import HttpResponse as HR
# Create your views here.

def index(request):
       return HR("hola estas en el index de polls")
 

mi internet its very laggy

--
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/8b8d005c-e2c1-4399-9bd8-9deb1cdea9f8%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/CAHV4E-cjH_Zc645Hj13201Z8Fme%2BBevfqA5oie5Gnz9ZN%3DGt%3DA%40mail.gmail.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/a0e99f7d-50af-41a8-a3c2-c648641aee14%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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/7b97fec2-0f08-43c7-b1d1-714333c3bf37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment