summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorolly <olly@ollycope.com>2015-09-08 15:12:15 +0000
committerolly <olly@ollycope.com>2015-09-08 15:12:15 +0000
commit3f3e3f2d592e6dc3fad88fa814d4e905471d3128 (patch)
treeefd0c35b154c409aeb6aa4c8cf9192e46467dc5f /README.rst
parent1fe040adcc685c529315b8e5c8bb36fe3cc5c059 (diff)
downloadyoyo-3f3e3f2d592e6dc3fad88fa814d4e905471d3128.tar.gz
Fix config file inheritance example in README
Diffstat (limited to 'README.rst')
-rwxr-xr-xREADME.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 8971c46..82912a0 100755
--- a/README.rst
+++ b/README.rst
@@ -174,7 +174,13 @@ Config file inheritance may be used to customize configuration per site::
# file: yoyo.ini
#
[DEFAULT]
- %inherit %(here)s/yoyo-defaults.ini
+
+ ; Inherit settings from yoyo-defaults.ini
+ %inherit = %(here)s/yoyo-defaults.ini
+
+ ; Use '?' to avoid raising an error if the file does not exist
+ %inherit = ?%(here)s/yoyo-defaults.ini
+
database = sqlite:///%(here)s/mydb.sqlite