Enable token authentication for the API, add API token request view

This commit is contained in:
Roberto Rosario
2014-07-24 01:03:51 -04:00
parent 8807c52ac3
commit 3c4ddecf80
4 changed files with 26 additions and 2 deletions
+2
View File
@@ -52,6 +52,7 @@ INSTALLED_APPS = (
'mptt',
'compressor',
'rest_framework',
'rest_framework.authtoken',
'solo',
# Base generic
'permissions',
@@ -255,6 +256,7 @@ REST_FRAMEWORK = {
'MAX_PAGINATE_BY': 100,
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.BasicAuthentication',
'rest_framework.authentication.TokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
)
}