mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 04:54:00 +03:00
[DOCS] python print syntax
python3 style
This commit is contained in:
parent
8a639c6c06
commit
3dd90d2b46
|
@ -26,7 +26,7 @@ you should use the `api_settings` object. For example.
|
|||
|
||||
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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user