aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysite/settings.py')
-rw-r--r--pysite/settings.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/pysite/settings.py b/pysite/settings.py
index cf89bb40..247a27a9 100644
--- a/pysite/settings.py
+++ b/pysite/settings.py
@@ -159,3 +159,14 @@ if DEBUG:
PARENT_HOST = 'pythondiscord.local:8000'
else:
PARENT_HOST = 'pythondiscord.com'
+
+# Django REST framework
+# http://www.django-rest-framework.org
+REST_FRAMEWORK = {
+ 'DEFAULT_PERMISSION_CLASSES': [
+ 'pysite.permissions.HasValidAPIKey'
+ ]
+}
+
+# Bot API settings
+BOT_API_KEY = env('BOT_API_KEY')