Changes between Initial Version and Version 1 of Ticket #35165


Ignore:
Timestamp:
Feb 4, 2024, 1:02:47 PM (10 months ago)
Author:
Tim Graham
Comment:

This is a bug tracker. See TicketClosingReasons/UseSupportChannels for ways to get help.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35165

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #35165 – Description

    initial v1  
    11Hello,
    22
    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 
     3I 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
     5from django.urls import path
    56from . import views
    67
     
    1314    path('<int:question_id>/vote/', views.vote, name='vote'),
    1415]
     16}}}
    1517and here is my views.py for the detail view:
    16 
     18{{{#!python
    1719class DetailView(generic.DetailView):
    1820    model = Question
     
    2426        """
    2527        return Question.objects.filter(pub_date__lte=timezone.now())
    26 
     28}}}
Back to Top