Fix CommaSeparatedStrings code block (#282)

This commit is contained in:
Pierre Vanliefland 2018-12-18 14:29:19 +01:00 committed by Tom Christie
parent 4af75d72a9
commit b805fe6969
1 changed files with 2 additions and 0 deletions

View File

@ -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