From ce6d7cc1236342ad95c0c90e21f1800bce303010 Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Wed, 23 Jan 2013 03:21:44 -0500 Subject: [PATCH] attempt conditional import of GOOGLE_USER for notes.models --- karmaworld/apps/notes/models.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/karmaworld/apps/notes/models.py b/karmaworld/apps/notes/models.py index 1a6828e..2d0ddd5 100644 --- a/karmaworld/apps/notes/models.py +++ b/karmaworld/apps/notes/models.py @@ -15,6 +15,11 @@ from oauth2client.client import Credentials from karmaworld.apps.courses.models import Course +try: + from secrets.drive import GOOGLE_USER +except: + GOOGLE_USER = u'admin@karmanotes.org' + class Note(models.Model): """ A django model representing an uploaded file and associated metadata. """ -- 2.25.1