From befd28eef479278a26d2dc1d4aca78a5fbec2a44 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Wed, 20 May 2009 00:57:44 -0300 Subject: [PATCH] docs/tutorial: added reminder about adding pipeline to ITEM_PIPELINES settings (thanks jamie) --- docs/intro/tutorial.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rst index 1aa87e532..6d2533ff0 100644 --- a/docs/intro/tutorial.rst +++ b/docs/intro/tutorial.rst @@ -416,7 +416,7 @@ creation step, it's in ``dmoz/pipelines.py`` and looks like this:: We have to override the ``process_item`` method in order to store our Items somewhere. -Here's an example pipeline for storing the scraped items into a CSV (comma +Here's a simple pipeline for storing the scraped items into a CSV (comma separated values) file using the standard library `csv module`_:: import csv @@ -432,6 +432,12 @@ separated values) file using the standard library `csv module`_:: .. _csv module: http://docs.python.org/library/csv.html + +Don't forget to enable the pipeline by adding it to the +:setting:`ITEM_PIPELINES` setting in your settings.py, like this:: + + ITEM_PIPELINES = ['dmoz.pipelines.CsvWriterPipeline'] + Finale ======