diff --git a/test_project/test_project/settings.py b/test_project/test_project/settings.py index 54f7f1d49..d19515f9a 100644 --- a/test_project/test_project/settings.py +++ b/test_project/test_project/settings.py @@ -45,6 +45,7 @@ INSTALLED_APPS = ( 'django.contrib.sites', 'django.contrib.staticfiles', 'reversion', + 'rest_framework', 'rest_framework.authtoken' ) @@ -141,6 +142,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media') REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.TokenAuthentication', + 'rest_framework.authentication.SessionAuthentication', ), 'DEFAULT_PERMISSION_CLASSES': ( 'rest_framework.permissions.IsAuthenticated',