Add P-sensor API
diff --git a/hiccup/settings.py b/hiccup/settings.py
index d459dde..349a47b 100644
--- a/hiccup/settings.py
+++ b/hiccup/settings.py
@@ -37,7 +37,9 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
+ 'rest_framework',
'crashreports',
+ 'psensor',
]
MIDDLEWARE_CLASSES = [
@@ -112,6 +114,12 @@
USE_TZ = True
+REST_FRAMEWORK = {
+ 'DEFAULT_PERMISSION_CLASSES': (
+ 'rest_framework.permissions.IsAuthenticated',
+ )
+}
+
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/