mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-02 03:13:18 +03:00
Merge pull request #5930 from minitux/patch-1
[DOCS] python print syntax docs/api-guide/settings.md
This commit is contained in:
commit
4b47721c6d
|
@ -26,7 +26,7 @@ you should use the `api_settings` object. For example.
|
||||||
|
|
||||||
from rest_framework.settings import api_settings
|
from rest_framework.settings import api_settings
|
||||||
|
|
||||||
print api_settings.DEFAULT_AUTHENTICATION_CLASSES
|
print(api_settings.DEFAULT_AUTHENTICATION_CLASSES)
|
||||||
|
|
||||||
The `api_settings` object will check for any user-defined settings, and otherwise fall back to the default values. Any setting that uses string import paths to refer to a class will automatically import and return the referenced class, instead of the string literal.
|
The `api_settings` object will check for any user-defined settings, and otherwise fall back to the default values. Any setting that uses string import paths to refer to a class will automatically import and return the referenced class, instead of the string literal.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user