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

2023-04-14 Thread TITAS ONLINE MARKET

Setting up a new Django project doesn't require much code copying, my 
friend. This can be done more simply and easily. You follow the new 
tutorial. Also if you have problem knock me I don't know much but I would 
be happy to discuss with you.
On Tuesday, April 11, 2023 at 6:44:53 PM UTC+6 Michael Starr wrote:

> You probably weren't careful enough following instructions. The beginner's 
> tutorial is self-contained and allows a complete Django project to be made. 
> Re-read everything word-for-word and then come back with some hypotheses 
> for us to test for you.
> Michael
>
> On Tuesday, April 4, 2023 at 9:44:38 AM UTC-7 Tanveer wrote:
>
>> 0
>> 
>>
>> I know this question has been asked before, but I haven't found an answer 
>> that solves my situation.
>>
>> I'm looking at the Django tutorial, and I've set up the first URLs 
>> exactly as the tutorial has it, word for word, but when I go to 
>> http://127.0.0.1:8000/, it gives me this error: but when i go to 
>> http://127.0.0.1:8000/admin/ its working fine,where and what i am doing 
>> wrong? i am using python version 3.11.1 please let me know for any other 
>> info
>> urls.py
>>
>> from django.contrib import admin
>> from django.urls import path, include
>> from django.conf.urls.static import static
>> from django.conf import settings
>> from .views import home
>> urlpatterns = [
>> path('admin/', admin.site.urls),
>> path('', home)
>>   ]
>>
>> views.py
>> from django.http import HttpResponse
>> from django.shortcuts import render
>>
>> # Create your views here.
>> def home(request):
>> return render(request,home.html,{})
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/82c81da4-b9ce-4985-8387-ba1f63985ca2n%40googlegroups.com.


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

2023-04-11 Thread Michael Starr
You probably weren't careful enough following instructions. The beginner's 
tutorial is self-contained and allows a complete Django project to be made. 
Re-read everything word-for-word and then come back with some hypotheses 
for us to test for you.
Michael

On Tuesday, April 4, 2023 at 9:44:38 AM UTC-7 Tanveer wrote:

> 0
> 
>
> I know this question has been asked before, but I haven't found an answer 
> that solves my situation.
>
> I'm looking at the Django tutorial, and I've set up the first URLs exactly 
> as the tutorial has it, word for word, but when I go to 
> http://127.0.0.1:8000/, it gives me this error: but when i go to 
> http://127.0.0.1:8000/admin/ its working fine,where and what i am doing 
> wrong? i am using python version 3.11.1 please let me know for any other 
> info
> urls.py
>
> from django.contrib import admin
> from django.urls import path, include
> from django.conf.urls.static import static
> from django.conf import settings
> from .views import home
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('', home)
>   ]
>
> views.py
> from django.http import HttpResponse
> from django.shortcuts import render
>
> # Create your views here.
> def home(request):
> return render(request,home.html,{})
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6ae14b24-3fff-4f12-a9d9-80f4baa95c81n%40googlegroups.com.


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

2023-04-04 Thread Tanveer
0


I know this question has been asked before, but I haven't found an answer 
that solves my situation.

I'm looking at the Django tutorial, and I've set up the first URLs exactly 
as the tutorial has it, word for word, but when I go to 
http://127.0.0.1:8000/, it gives me this error: but when i go to 
http://127.0.0.1:8000/admin/ its working fine,where and what i am doing 
wrong? i am using python version 3.11.1 please let me know for any other 
info
urls.py

from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
from .views import home
urlpatterns = [
path('admin/', admin.site.urls),
path('', home)
  ]

views.py
from django.http import HttpResponse
from django.shortcuts import render

# Create your views here.
def home(request):
return render(request,home.html,{})

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5ad2f1c6-101a-4c16-9eff-a886d9267805n%40googlegroups.com.


Re: Django tried these URL patterns

2022-06-17 Thread Mike Kilmer
Not sure why, but moving path("integrations/", 
include("integrations.urls")), above the "" slash seems to have solved the 
problem.

On Friday, June 17, 2022 at 5:45:19 PM UTC-5 Mike Kilmer wrote:

> This app is set up to create webhooks and receive requests, however the 
> routing has broken and the requests are getting a 404.
>
> The path looks like this:
>
>
> http://127.0.0.1:8000/integrations/dc3509ac-1aa8-4c9a-a439-904342d885cd/order
>
> The Stack Track/Routing:
>
> Using the URLconf defined in fulfill.urls, Django tried these URL 
> patterns, in this order:
>
>1. baton/
>2. [name='index']
>3. etc...
>4. integrations/request/
>5. reports/clientreport/
>6. 
> ^(?Pauth|sites|account|socialaccount|users|core|integrations|reports)/$
>  
>[name='app_list']
>7. (?P.*)$
>
> The current path, integrations/dc3509ac-1aa8-4c9a-a439-904342d885cd/order, 
> matched the last one.
>
> My URL setup is like this:
> urlpatterns = [
> path("baton/", include("baton.urls")),
> # Be sure "baton/" is at the beginning of the list, before "".
> path("", admin.site.urls),
> path('accounts/', include('allauth.urls')),
> path("integrations/", include("integrations.urls")),
> path("queryfilter/", include("core.urls")),
> path("docs/", include("docs.urls")),
> path(
> "favicon.ico", 
> RedirectView.as_view(url=staticfiles_storage.url("favicon.ico"))
> ),
> ]
>
> With integrations.urls like this:
>
> urlpatterns = [
>   path(
> "/order",
>   incoming_order,
>   name="incoming-order",
> ),
> ]
>
>
> The incoming_order method looks like this:
>
> @csrf_exempt
> @require_http_methods(["POST"])
> def incoming_order(request, integration_uuid):
> headers = request.headers
> request_body = request.body.decode("utf-8")
> log = Request.objects.create(
> url=request.build_absolute_uri(), body=request_body, 
> headers=dict(headers)
> )
>
> log.process(integration_uuid)
>
> return JsonResponse({"status": "ok"})
>
> Any suggestions?
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c23ab998-6331-44a0-ace2-a2f273fc36d5n%40googlegroups.com.


Django tried these URL patterns

2022-06-17 Thread Mike Kilmer
This app is set up to create webhooks and receive requests, however the 
routing has broken and the requests are getting a 404.

The path looks like this:

http://127.0.0.1:8000/integrations/dc3509ac-1aa8-4c9a-a439-904342d885cd/order

The Stack Track/Routing:

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

   1. baton/
   2. [name='index']
   3. etc...
   4. integrations/request/
   5. reports/clientreport/
   6. 
^(?Pauth|sites|account|socialaccount|users|core|integrations|reports)/$
 
   [name='app_list']
   7. (?P.*)$

The current path, integrations/dc3509ac-1aa8-4c9a-a439-904342d885cd/order, 
matched the last one.

My URL setup is like this:
urlpatterns = [
path("baton/", include("baton.urls")),
# Be sure "baton/" is at the beginning of the list, before "".
path("", admin.site.urls),
path('accounts/', include('allauth.urls')),
path("integrations/", include("integrations.urls")),
path("queryfilter/", include("core.urls")),
path("docs/", include("docs.urls")),
path(
"favicon.ico", 
RedirectView.as_view(url=staticfiles_storage.url("favicon.ico"))
),
]

With integrations.urls like this:

urlpatterns = [
  path(
"/order",
  incoming_order,
  name="incoming-order",
),
]


The incoming_order method looks like this:

@csrf_exempt
@require_http_methods(["POST"])
def incoming_order(request, integration_uuid):
headers = request.headers
request_body = request.body.decode("utf-8")
log = Request.objects.create(
url=request.build_absolute_uri(), body=request_body, 
headers=dict(headers)
)

log.process(integration_uuid)

return JsonResponse({"status": "ok"})

Any suggestions?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/98d3971b-41da-4b33-8bbe-3b9a59332b9bn%40googlegroups.com.


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

2018-10-23 Thread Manjunath
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  > 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  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  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

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

2018-10-23 Thread Bugs Bunny
i use this and work, thanks (y)

On Tue, Oct 23, 2018 at 1:04 AM Manjunath  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  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  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+unsubscr...@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/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+unsubscr...@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/CAAh

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

2018-10-22 Thread Manjunath
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  > 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 > > 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+unsubscr...@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/a0e99f7d-50af-41a8-a3c2-c648641aee14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-10-21 Thread Motaz Hejaze
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  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+unsubscr...@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/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+unsubscr...@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/CAHV4E-cjH_Zc645Hj13201Z8Fme%2BBevfqA5oie5Gnz9ZN%3DGt%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-10-21 Thread Manjunath
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+unsubscr...@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/8b8d005c-e2c1-4399-9bd8-9deb1cdea9f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-10-19 Thread Bugs Bunny
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+unsubscr...@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/a331d5ef-7081-4cc7-a938-5a1d521a99cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.