"""
secrets_path = env.code_root + '/karmaworld/secret'
- secrets_files = ('filepicker.py', 'static_s3.py', 'db_settings.py', 'drive.py', 'client_secrets.json')
+ secrets_files = ('filepicker.py', 'static_s3.py', 'db_settings.py', 'drive.py', 'client_secrets.json', 'drive.p12')
errors = []
for sfile in secrets_files:
from django.core.files.base import ContentFile
from oauth2client.client import SignedJwtAssertionCredentials
-import secrets.drive as drive
+import karmaworld.secret.drive as drive
PPT_MIMETYPES = ['application/vnd.ms-powerpoint', 'application/vnd.openxmlformats-officedocument.presentationml.presentation']
DO NOT check drive.py into source control.
"""
+import os
+
+from django.conf import settings
+
+
CLIENT_SECRET = os.path.join(settings.DJANGO_ROOT, \
'path/to/client_secrets.json')