Closed
Description
From rhcarva...@gmail.com on June 23, 2010 23:04:45
If one is following the documentation in the console as it is, he will face a missing imports in the second excerpt of code from: http://packages.python.org/CouchDB/mapping.html It should be
from couchdb.mapping import Document, TextField, IntegerField, DateTimeField
from datetime import datetime
class Person(Document):
... name = TextField()
... age = IntegerField()
... added = DateTimeField(default=datetime.now)
In addition, there are more similar missing imports for ViewField, and others.
Original issue: http://code.google.com/p/couchdb-python/issues/detail?id=138