Changes between Initial Version and Version 2 of Ticket #11272
- Timestamp:
- Jun 10, 2009, 8:21:42 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11272 – Description
initial v2 23 23 In http://docs.djangoproject.com/en/dev/intro/tutorial04/#intro-tutorial04: 24 24 25 * Since the tutorial aims to not couple the polls app to the mysite project, it makes sense to remove the polls package from the mysite package. Otherwise, you end up with the following stuff in the URLconf: "(r'^(?P<poll_id>\d+)/vote/$', 'mysite.polls.views.vote')". In general, 'egrep -r "mysite.polls" mysite'should find no matches.25 * Since the tutorial aims to not couple the polls app to the mysite project, it makes sense to remove the polls package from the mysite package. Otherwise, you end up with the following stuff in the URLconf: `(r'^(?P<poll_id>\d+)/vote/$', 'mysite.polls.views.vote')`. In general, `egrep -r "mysite.polls" mysite` should find no matches. 26 26 27 27 * There's a problem in using a relative URL for the form. If you go to http://localhost:8001/polls/1/ and just click "Vote", it'll bring you to http://localhost:8001/polls/1/vote/. If you click "Vote" again, you'll get http://localhost:8001/polls/1/vote/vote/, which leads to a 404. Even if you enter a valid value, clicking on "Vote" this second time around will lead to a 404. 28 29