attempt conditional import of GOOGLE_USER for notes.models
authorSeth Woodworth <seth@sethish.com>
Wed, 23 Jan 2013 08:21:44 +0000 (03:21 -0500)
committerSeth Woodworth <seth@sethish.com>
Wed, 23 Jan 2013 08:21:44 +0000 (03:21 -0500)
karmaworld/apps/notes/models.py

index 1a6828e747fd57ebc8dbe63c06b25e5cab5b868a..2d0ddd51236aa5aa7ce0cf40fbc6e9b2aece3ce4 100644 (file)
@@ -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.
     """