Skip to content

Instantly share code, notes, and snippets.

View adrianandreias's full-sized avatar

Adrian Andreias adrianandreias

View GitHub Profile
@adrianandreias
adrianandreias / settings.py
Created September 23, 2014 15:32
drf conf
REST_FRAMEWORK = {
# Use hyperlinked styles by default.
# Only used if the `serializer_class` attribute is not set on a view.
'DEFAULT_MODEL_SERIALIZER_CLASS': 'rest_framework.serializers.HyperlinkedModelSerializer',
# Use Django's standard `django.contrib.auth` permissions,
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated'],
'DEFAULT_AUTHENTICATION_CLASSES': (