add doc about disabling an extension. refs #132

This commit is contained in:
Pablo Hoffman 2013-01-07 13:16:19 -02:00
parent 7f990a4af2
commit 227a1d666b
1 changed files with 11 additions and 0 deletions

View File

@ -62,6 +62,17 @@ Not all available extensions will be enabled. Some of them usually depend on a
particular setting. For example, the HTTP Cache extension is available by default
but disabled unless the :setting:`HTTPCACHE_ENABLED` setting is set.
Disabling an extension
======================
In order to disable an extension that comes enabled by default (ie. those
included in the :setting:`EXTENSIONS_BASE` setting) you must set its order to
``None``. For example::
EXTENSIONS = {
'scrapy.contrib.corestats.CoreStats': None,
}
Writing your own extension
==========================