[Answered ]-Django1.8 and Mongoengine NameError: name 'IntegerField' is not defined

2👍

timestamp = IntField(blank=True, null=True)

but its better to use

timestamp = DateTimeField(blank=True, null=True) 

as its a timestamp

0👍

IntergerField is not valid, use IntField instead.

user_id = IntField(blank=True, null=True)

Ref: http://docs.mongoengine.org/apireference.html#mongoengine.fields.IntField

Leave a comment