Commit f0af2118 authored by Daniel W Bond's avatar Daniel W Bond

added sessions-based authentication for the API... essentially, you may only...

added sessions-based authentication for the API... essentially, you may only access this information if you are logged in
parent 30259ba0
......@@ -79,6 +79,15 @@ INSTALLED_APPS = (
CRISPY_TEMPLATE_PACK = 'bootstrap3'
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.SessionAuthentication',
),
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
),
}
MESSAGE_TAGS = {messages.ERROR: 'danger', }
MIDDLEWARE_CLASSES = (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment