[Django] #35379: Possible error in documentation

8 views
Skip to first unread message

Django

unread,
Apr 17, 2024, 4:56:15 AM4/17/24
to django-...@googlegroups.com
#35379: Possible error in documentation
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
NobitaNoobie |
Type: | Status: new
Uncategorized |
Component: | Version: 5.0
Documentation |
Severity: Normal | Keywords: Documentation fault
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
With reference to the tutorial:
https://docs.djangoproject.com/en/5.0/intro/tutorial01/
While running the demo polls app in my development server I received the
following error message:
Using the URLconf defined in mysite.urls, Django tried these URL patterns,
in this order:

polls/
admin/
The empty path didn’t match any of these.

But when I changed the mysite\urls, likeso,
urlpatterns = [
path("", include("polls.urls")),
path("admin/", admin.site.urls),
]

I was able to display the desired response. Please check!
--
Ticket URL: <https://code.djangoproject.com/ticket/35379>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 17, 2024, 6:02:47 AM4/17/24
to django-...@googlegroups.com
#35379: Possible error in documentation
-------------------------------------+-------------------------------------
Reporter: NobitaNoobie | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 5.0
Severity: Normal | Resolution: invalid
Keywords: Documentation fault | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* resolution: => invalid
* status: new => closed

Comment:

Hello! Thank you for trying out Django (it's my favourite framework, hope
you like it)

In these docs it says:

> Go to http://localhost:8000/polls/ in your browser, and you should see
the text “Hello, world. You’re at the polls index.”, which you defined in
the index view.

What I suspect is you've gone to http://localhost:8000/ (the page that
used to show a rocket). The way you've updated the `urlpatterns` means
would (as you said) show you the desired response at
http://localhost:8000/

We also have an explicit note in the docs about that 'Page not found
error'
> If you get an error page here, check that you’re going to
http://localhost:8000/polls/ and not http://localhost:8000/.

So good news, you're not the only person who thought they found an issue
here, but I will close this ticket as there isn't a bug in the docs and I
think the warning note is quite clear.

In future, you might want to use our
[https://docs.djangoproject.com/en/dev/faq/help/#how-do-i-do-x-why-
doesn-t-y-work-where-can-i-go-to-get-help user support channels] if you
come across something in your journey with Django. These are the best
places to get support 👍
--
Ticket URL: <https://code.djangoproject.com/ticket/35379#comment:1>
Reply all
Reply to author
Forward
0 new messages