Django

Code

Ticket #7914 (closed: fixed)

Opened 4 months ago

Last modified 4 months ago

"ping_google" not a aviable as subcommand in manage.py

Reported by: bernd Assigned to: nobody
Milestone: Component: Contrib apps
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

On the documentation there is an example for using the "pinging-google-via-manage", but the subcommand "ping_google" doesn't exist in manage.py.

http://www.djangoproject.com/documentation/sitemaps/#pinging-google-via-manage-py

$ python manage.py ping_google [/sitemap.xml]
Unknown command: 'ping_google'
Type 'manage.py help' for usage.

Attachments

Change History

07/23/08 07:57:25 changed by andreas@pelme.se

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

Same here, the problem is most likely missing init.py files:

django/contrib/sitemaps/management/init.py django/contrib/sitemaps/management/commands/init.py

I don't attach a patch since I do not think it would help out very much.

07/23/08 08:02:38 changed by Karen Tracey <kmtracey@gmail.com>

  • stage changed from Unreviewed to Accepted.

I can confirm adding the __init__.py files allows the ping_google command to be found by manage.py.

07/23/08 09:15:03 changed by russellm

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

(In [8062]) Fixed #7914 -- Added some missing init.py files that were missed when the ping_google command was added. Thanks to bernd for the report.


Add/Change #7914 ("ping_google" not a aviable as subcommand in manage.py)




Change Properties
Action