And I forgot to say thanks, I appreciate the help and guidance.

derrick

On Wednesday, August 21, 2013 10:23:12 AM UTC-3, Mauro Rocco wrote:
>
> Hi,
> The 34 is the id of the pool record in the database. This means that you 
> don't have a pool with that ID in the database.
> If you already created some pool object you will probably see something if 
> you navigate to this url /polls/1/results/.
> If also in this case you got 404 make sure you actually have some pool 
> object in the db.
>
> Regards
>
> On Wednesday, August 21, 2013 6:02:16 AM UTC+2, Diek Kearney wrote:
>>
>> I am going through the Tutorial Django 1.5 Tutorial Part 3, and up to the 
>> current point everything was running smoothly, then I hit a wall that I 
>> cannot figure out. Maybe I am too focused on following, anyways I need some 
>> help.
>>
>> After I updated Polls/urls.py:
>>
>> from django.conf.urls import patterns, include, url
>>
>>
>> from polls import views
>>
>>
>> urlpatterns = patterns('',
>>
>>                        # ex: /polls/
>>
>>                        url(r'^$', views.index, name='index'),
>>
>>                        # ex: /polls/5/
>>
>>                        url(r'^(?P<poll_id>\d+)/$',
>>
>>                            views.detail, name='detail'),
>>
>>                        # ex: /polls/5/results/
>>
>>                        url(r'^(?P<poll_id>\d+)/results/$',
>>
>>                            views.results, name='results'),
>>
>>                        # ex: /polls/5/vote/
>>
>>                        url(r'^(?P<poll_id>\d+)/vote/$',
>>
>>                            views.vote, name='vote'),
>>
>>                        )
>>
>> The next step is "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 tried and nothing. It generates 
>> a 404 error. Where exactly is the 34 coming from? I like to think things 
>> through but as a beginner in django following a tutorial I need more when 
>> it comes to this section.
>>
>> Thanks,
>>
>> Derrick
>>  
>>
>

-- 
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 http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to