Django Tutorial Part 3 Error for Django 3.1

72 views
Skip to first unread message

Ronnie Atuhaire

unread,
Mar 16, 2021, 1:11:48 PM3/16/21
to django...@googlegroups.com
Hello everyone, I joined this platform like a week ago not because I am experienced but because I am new to Django and would like to connect with like  minded people.

I have experienced an HTTP404 Error while following this tutorial at https://docs.djangoproject.com/en/3.1/intro/tutorial03/ 

Writing Views --I am stuck here, I can't see this page.

"""Take a look in your browser, at “/polls/34/”. It’ll run the detail() method and display whatever ID you provide in the URL. Try “/polls/34/results/” and “/polls/34/vote/” too – these will display the placeholder results and voting pages""".

I have been trying to figure it out but seems I have failed so far, tried stack overflow but no help so far. Any one who is interested in helping me out please let me know.
image.png

I will be so grateful.

Ronnie A

Joel Goldstick

unread,
Mar 16, 2021, 2:02:24 PM3/16/21
to django...@googlegroups.com
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOPBWLc8Af0TtufUiV08m9djKhaodzWW35Kig%2BdrHMuHQfUNng%40mail.gmail.com.

You haven't entered any url patterns in urls.py

Kelvin Sajere

unread,
Mar 16, 2021, 2:47:22 PM3/16/21
to django...@googlegroups.com
Simply because you haven't specified that URL path in your project, so it would naturally not be able to find it. The path I see from your error image, is the /admin/ path. 

--
KeLLs

Saad Olamilekan

unread,
Mar 16, 2021, 3:27:19 PM3/16/21
to django...@googlegroups.com
Check your files, your app files may not in the right directory 


Ronnie Atuhaire

unread,
Mar 17, 2021, 8:41:40 AM3/17/21
to django...@googlegroups.com

ngal...@gmail.com

unread,
Mar 17, 2021, 8:58:07 AM3/17/21
to django...@googlegroups.com

It seems you didn’t add your app urls.py to your projects  urls.py

Assume I have a project called workflow and an app called approval

You can share your app’s urls.py and your project’s urls.py

 

Kind Regards

 

Ramadhan Ngallen

 

Please consider the environment before printing.

 

From: django...@googlegroups.com <django...@googlegroups.com> On Behalf Of Ronnie Atuhaire
Sent: Wednesday, March 17, 2021 11:41 AM
To: django...@googlegroups.com
Subject: Re: Django Tutorial Part 3 Error for Django 3.1

 

Thanks!

 

 

On Tue, Mar 16, 2021 at 5:01 PM Joel Goldstick <joel.go...@gmail.com> wrote:

On Tue, Mar 16, 2021 at 9:11 AM Ronnie Atuhaire <ronl...@gmail.com> wrote:

Hello everyone, I joined this platform like a week ago not because I am experienced but because I am new to Django and would like to connect with like  minded people.

 

I have experienced an HTTP404 Error while following this tutorial at https://docs.djangoproject.com/en/3.1/intro/tutorial03/ 

 

Writing Views --I am stuck here, I can't see this page.

 

"""Take a look in your browser, at “/polls/34/”. It’ll run the detail() method and display whatever ID you provide in the URL. Try “/polls/34/results/” and “/polls/34/vote/” too – these will display the placeholder results and voting pages""".

 

I have been trying to figure it out but seems I have failed so far, tried stack overflow but no help so far. Any one who is interested in helping me out please let me know.

 

I will be so grateful.

 

Ronnie A

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOPBWLc8Af0TtufUiV08m9djKhaodzWW35Kig%2BdrHMuHQfUNng%40mail.gmail.com.

You haven't entered any url patterns in urls.py

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPM-O%2BwqTTCk1gf7469Xnun0NMfahLFepOBXcMD6yeCRavnqyA%40mail.gmail.com.

--
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.

image003.jpg
image004.png
Reply all
Reply to author
Forward
0 new messages