thx, this helps me a lot ! 在 2015年5月3日星期日 UTC+8上午2:42:00,Eldav写道: > > Hi Robert, > > this is not a Pyramid-related question. I have never user pymongo, but > if I look at the example (https://pypi.python.org/pypi/pymongo/2.8) and > the source code (https://github.com/mongodb/mongo-python-driver), it > appears you should probably be writing something like: > > client = pymongo.MongoClient("localhost", 27017) > > Hope this helps, > > Laurent. > > > Le 02/05/2015 20:07, [email protected] <javascript:> a écrit : > > I'm starting a new project with pyramid and mongodb. When I run the > > command: development.ini pserve shows the following error: > > > > File > > > "/home/robertsolano/workspace/projects/learn/pyramid-learn/my_blog/my_blog/__init__.py", > > > > line 24, in main > > > > MongoDB = pymongo.Connection > > > > AttributeError: 'module' object has no attribute 'Connection' > > > > Has anyone experienced this? > > > > -- > > You received this message because you are subscribed to the Google > > Groups "pylons-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > > an email to [email protected] <javascript:> > > <mailto:[email protected] <javascript:>>. > > To post to this group, send email to [email protected] > <javascript:> > > <mailto:[email protected] <javascript:>>. > > Visit this group at http://groups.google.com/group/pylons-discuss. > > For more options, visit https://groups.google.com/d/optout. > >
-- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
