Hi Abhishek,

On 11/11/2019 15.19, 'Abhishek Sharma' via Django users wrote:

############Error##########

Traceback (most recent call last):
   File "self.py", line 36, in <module>
     db=instance.getDBObject('techcraft')
   File "self.py", line 28, in getDBObject
     connection = getMongoConnetion()
NameError: name 'getMongoConnetion' is not defined


In your getDBObject function you need an instance for your getMongoConnetion() function, eg. self.getMongoConnetion().

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7dc4cbdf-3e03-f289-006d-8bc7c2de33bf%40stacktrace.dk.

Reply via email to