From b805fe6969cea71489d83227963ce8124620d724 Mon Sep 17 00:00:00 2001 From: Pierre Vanliefland Date: Tue, 18 Dec 2018 14:29:19 +0100 Subject: [PATCH] Fix CommaSeparatedStrings code block (#282) --- docs/config.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/config.md b/docs/config.md index 92cc6046..ed8b07c7 100644 --- a/docs/config.md +++ b/docs/config.md @@ -77,6 +77,7 @@ DatabaseURL('postgresql://admin:**********@192.168.0.8/my-application') For holding multiple inside a single config key, the `CommaSeparatedStrings` type is useful. +```python >>> from myproject import settings >>> print(settings.ALLOWED_HOSTS) CommaSeparatedStrings(['127.0.0.1', 'localhost']) @@ -86,6 +87,7 @@ CommaSeparatedStrings(['127.0.0.1', 'localhost']) 2 >>> print(settings.ALLOWED_HOSTS[0]) '127.0.0.1' +``` ## Reading or modifying the environment