Django

Code

Ticket #5271 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

manage.py validate no longer accepts application name as an argument

Reported by: Pesh Alto Assigned to: adrian
Milestone: Component: django-admin.py
Version: SVN Keywords: tutorial validate arguments parameters models
Cc: Triage Stage: Design decision needed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

In the tutorial at http://www.djangoproject.com/documentation/tutorial01/ under 'Activating Models', the following example command is given:

python manage.py validate polls — Checks for any errors in the construction of your models.

However, this appears to be out of date. When I run the example as:

python manage.py validate polls

it says that it was given an extra parameter, and that validate takes no parameters.

If I instead run:

python manage.py validate

it appears to work fine. The tutorial should be edited to remove the extra parameter.

Attachments

Change History

09/02/07 04:42:10 changed by Simon G. <dev@simon.net.nz>

  • needs_better_patch changed.
  • component changed from Documentation to django-admin.py.
  • needs_tests changed.
  • summary changed from tutorial: manage.py validate example shows extra parameter to manage.py validate no longer accepts application name as an argument.
  • owner changed from jacob to adrian.
  • needs_docs changed.
  • stage changed from Unreviewed to Design decision needed.

I think the question is whether we want to allow validate to take an optional application. This must have been removed in the recent management.py rearrangement.

09/03/07 08:13:11 changed by russellm

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

(In [6040]) Fixed #5271 -- Fixed documentation reference to using the application name as an argument to manage.py validate. The recent management.py refactor exposed this error; it was silently ignored previously.


Add/Change #5271 (manage.py validate no longer accepts application name as an argument)




Change Properties
Action