Example #1
0
 def __init__(self):
     '''
     Constructor
     '''
     from models.mongo import getCollection
     self.postColl = getCollection('post')
     self.userColl = getCollection('user')
     from django.conf import settings
     self.icon_path = settings.STATIC_URL+'icon/'
Example #2
0
 def __init__(self ):
     '''
     Constructor
     '''
     from models.mongo import getCollection
     self.feedback = getCollection('feedback')