From 78da3240fb7dde1ccddc083f5e194cd12ce34c3a Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 16 Mar 2017 12:08:10 +0100 Subject: [PATCH] Fixed test settings. see #1078 --- test_project/test_project/settings.py | 2 ++ 1 file changed, 2 insertions(+) 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',