Updates to work with REST framework 2.3.x, update browseable API style to mimic UI.

This commit is contained in:
Chris Church
2013-06-14 04:13:34 -04:00
parent e5737cae46
commit c526f58098
7 changed files with 152 additions and 42 deletions

View File

@@ -29,10 +29,14 @@ REST_FRAMEWORK = {
'PAGINATE_BY': 25,
'PAGINATE_BY_PARAM': 'page_size',
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
'rest_framework.authentication.BasicAuthentication',
'rest_framework.authentication.TokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
)
),
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer',
'ansibleworks.main.renderers.BrowsableAPIRenderer',
),
}
DATABASES = {