Skip to content

Commit

Permalink
updated docs for dumpdata command
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurk committed Mar 8, 2010
1 parent 4281006 commit 576ce8c
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 4 deletions.
Binary file modified docs/_build/doctrees/commands.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html
64 changes: 61 additions & 3 deletions docs/commands.rst
Expand Up @@ -3,12 +3,70 @@
Commands
========

disqus_dumpdata
---------------

Outputs a list of comments in the JSON format.

If neither of the ``--filter`` or ``--exclude`` options are used, the output
will include approved, deleted and spam comments. Each comment will have the data
about its associated Author, Thread and Forum included.

Example output::

[{
"status": "approved",
"has_been_moderated": false,
"thread": {
"category": "78805",
"allow_comments": true,
"forum": "71225",
"title": "Passing MEDIA_URL in Django's 500 error view",
"url": "http://arthurkoziel.com/2009/01/15/passing-mediaurl-djangos-500-error-view/",
"created_at": "2009-01-17T17:29",
"slug": "passing_media_url_in_django39s_500_error_view_arthur_koziels_blog",
"hidden": false,
"identifier": [],
"id": "102172011"
},
"forum": {
"id": "71225",
"created_at": "2009-01-17 05:48:00.863075",
"shortname": "arthurkozielsblog",
"name": "Arthur Koziel\u2019s Blog",
"description": ""
},
"created_at": "2009-11-30T12:48",
"is_anonymous": true,
"points": 0,
"message": "Thanks for the article!",
"anonymous_author": {
"url": "http://example.org/",
"email_hash": "j198m7123m12837m12893m7128121u23",
"name": "John",
"email": "john@example.org"
},
"ip_address": "12.345.678.11",
"id": "12345678",
"parent_post": null
}]


Options
^^^^^^^

- ``--indent``: Specifies the indent level to use when pretty-printing output.
Example: ``./manage.py dumpdata --indent=4``
- ``--filter``: Type of entries (new, spam, killed) that should be returned.
Types can be combined by separating them with a comma. Example:
``./manage.py dumpdata --filter=spam,killed``
- ``--exclude``: Type of entries (new, spam, killed) that should be excluded.
Types can be combined by separating them with a comma. Example:
``./manage.py dumpdata --exclude=spam,killed``

disqus_export
-------------

disqus_threadedcomments_export
------------------------------

disqus_dumpdata
---------------

0 comments on commit 576ce8c

Please sign in to comment.