From: Seth Woodworth Date: Wed, 23 Jan 2013 08:21:44 +0000 (-0500) Subject: attempt conditional import of GOOGLE_USER for notes.models X-Git-Tag: release-20150131~549^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ce6d7cc1236342ad95c0c90e21f1800bce303010;p=oweals%2Fkarmaworld.git attempt conditional import of GOOGLE_USER for notes.models --- 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. """