mirror of https://github.com/scrapy/scrapy.git
minor update to topics/settings.rst
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40749
This commit is contained in:
parent
a29fed066c
commit
4018f07d17
|
|
@ -87,7 +87,12 @@ In other words, settings can be accesed like a dict, but it's usually preferred
|
|||
to extract the setting in the format you need it to avoid type errors. In order
|
||||
to do that you'll have to use one of the following methods:
|
||||
|
||||
.. class:: Settings
|
||||
.. class:: Settings()
|
||||
|
||||
The Settings object is automatically instantiated when the
|
||||
:mod:`scrapy.conf` module is loaded, and it's usually accessed like this::
|
||||
|
||||
>>> from scrapy.conf import settings
|
||||
|
||||
.. method:: Settings.get(name, default=None)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue