Skip to content

Commit 6204182

Browse files
committed
Update settings.md
We shouldn't propose people to use incorrectly named env variables: previously: if "SHOW_DRFDOCS" is True - docs are hidden now: correct naming of variables.
1 parent 0ccef88 commit 6204182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/settings.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ To set DRF docs' settings just include the dictionary below in Django's `setting
1616
You can use hidden to prevent your docs from showing up in different environments (ie. Show in development, hide in production). To do so you can use environment variables.
1717

1818
REST_FRAMEWORK_DOCS = {
19-
'HIDE_DOCS': os.environ.get('SHOW_DRFDOCS', False)
19+
'HIDE_DOCS': os.environ.get('HIDE_DRFDOCS', False)
2020
}
2121

22-
Then set the value of the environment variable `SHOW_DRFDOCS` for each environment (ie. Use `.env` files)
22+
Then set the value of the environment variable `HIDE_DRFDOCS` for each environment (ie. Use `.env` files)
2323

2424
### List of Settings
2525

0 commit comments

Comments
 (0)