let's take a look at a quick example of using REST framework to build a 
simple model-backed API.

We'll create a read-write API for accessing information on the users of our 
project.

Any global settings for a REST framework API are kept in a single 
configuration dictionary named REST_FRAMEWORK. Start off by adding the 
following to your settings.py module:
REST_FRAMEWORK = { # Use Django's standard `django.contrib.auth` 
permissions, # or allow read-only access for unauthenticated users. 
'DEFAULT_PERMISSION_CLASSES': [ 
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly' ] } 

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/cf44da7a-2ec7-4da9-9d6e-98a79a005a68n%40googlegroups.com.

Reply via email to