Changes between Initial Version and Version 1 of Ticket #35165
- Timestamp:
- Feb 4, 2024, 1:02:47 PM (9 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35165
- Property Resolution → invalid
- Property Status new → closed
-
Ticket #35165 – Description
initial v1 1 1 Hello, 2 2 3 I just recently completed the Django Tutorial - Writing Your First App. When I try to do http://127.0.0.1:8000/admin/polls/1/ I get a 404 Page Not Found Error. I followed all of the steps in the tutorial but it appears that my detail view is not working. Whenever I try and click on a question, it immediately sends me to the /change/ url. What should I do about this? I will attach my polls.urls.py file. from django.urls import path 4 3 I just recently completed the Django Tutorial - Writing Your First App. When I try to do http://127.0.0.1:8000/admin/polls/1/ I get a 404 Page Not Found Error. I followed all of the steps in the tutorial but it appears that my detail view is not working. Whenever I try and click on a question, it immediately sends me to the /change/ url. What should I do about this? I will attach my polls.urls.py file. 4 {{{#!python 5 from django.urls import path 5 6 from . import views 6 7 … … 13 14 path('<int:question_id>/vote/', views.vote, name='vote'), 14 15 ] 16 }}} 15 17 and here is my views.py for the detail view: 16 18 {{{#!python 17 19 class DetailView(generic.DetailView): 18 20 model = Question … … 24 26 """ 25 27 return Question.objects.filter(pub_date__lte=timezone.now()) 26 28 }}}