Django

Code

Ticket #11272 (closed: fixed)

Opened 10 months ago

Last modified 9 months ago

Various minor errors in the tutorial

Reported by: jjinux Assigned to: nobody
Milestone: Component: Documentation
Version: 1.0 Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description (Last modified by gwilson)

Here is a list of minor errors or improvements that I kept while I read the tutorial:

In http://docs.djangoproject.com/en/dev/intro/overview/#intro-overview:

  • This example doesn't indent the HTML in a for loop, but elsewhere in the tutorial, they do.

In http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01:

  • The phrase django.contrib.sessions isn't hyperlinked like the others on this page.

In http://docs.djangoproject.com/en/dev/intro/tutorial02/:

  • The grammar in the following is wrong: "The first register Choice with the admin just as we did with Poll."

In http://docs.djangoproject.com/en/dev/intro/tutorial03/#intro-tutorial03:

  • It says, "When you ran python django-admin.py startproject mysite at the beginning of Tutorial 1". Actually, it didn't say to use "python", but rather to execute the script directly.
  • It says, "it loads the associated Python package/module: mysite.polls.views.detail." "detail" isn't a module, it's a function.
  • It says, "Now that we've decoupled that, we need to decouple the 'mysite.polls.urls' URLconf by removing the leading "polls/" from each line:". It should be more explicit that you should get rid of all the stuff related to admin. After all, the text did tell you to copy the file mysite/urls.py to mysite/polls/urls.py.

In http://docs.djangoproject.com/en/dev/intro/tutorial04/#intro-tutorial04:

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

Attachments

Change History

06/06/09 14:27:27 changed by jjinux

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

By the way, nice job on a great tutorial :-D

06/10/09 20:21:42 changed by gwilson

  • description changed.

Fixed ticket formatting.

06/18/09 08:39:45 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

(In [11044]) Fixed #11272 -- Made some clarifications to the overview and tutorial. Thanks to jjinux for the review notes.

06/18/09 09:13:51 changed by russellm

(In [11056]) [1.0.X] Fixed #11272 -- Made some clarifications to the overview and tutorial. Thanks to jjinux for the review notes.

Merge of r11044 from trunk.


Add/Change #11272 (Various minor errors in the tutorial)




Change Properties
Action