diff --git a/project/settings/api.py b/project/settings/api.py index 8a753f6f72a43f5cb0fe23b77a7721e89b411a83..d9cd5c5cb28de47c647920ec10c232d3196df4c4 100644 --- a/project/settings/api.py +++ b/project/settings/api.py @@ -9,5 +9,11 @@ REST_FRAMEWORK = { "DEFAULT_PERMISSION_CLASSES": ( "rest_framework.permissions.IsAuthenticated", + ), + + 'DEFAULT_AUTHENTICATION_CLASSES': ( + 'rest_framework.authentication.BasicAuthentication', + 'rest_framework.authentication.SessionAuthentication', + 'rest_framework.authentication.TokenAuthentication', ) } diff --git a/project/settings/apps.py b/project/settings/apps.py index dc39f95d61ba53e314d65fbb13009596bf39a34e..f5c1b882d3a92cc6c5b7ac517a5f7169f310b3f6 100644 --- a/project/settings/apps.py +++ b/project/settings/apps.py @@ -17,9 +17,9 @@ DJANGO_APPS = [ CONTRIB_APPS = [ "django_extensions", # http://django-extensions.readthedocs.io/ "rest_framework", # http://www.django-rest-framework.org/ + "rest_framework.authtoken", + "django_und", # https://github.com/luxcem/django_und - # https://github.com/philipn/django-rest-framework-filters - # "rest_framework_filters", "taggit", "crispy_forms",