Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(64)  |  Call(64)  |  Derive(0)  |  Import(0)

src/f/l/flask-admin-HEAD/examples/mongoengine/simple.py   flask-admin(Download)
class User(db.Document):
    name = db.StringField(max_length=40)
    tags = db.ListField(db.ReferenceField('Tag'))
    password = db.StringField(max_length=40)
 
class Todo(db.Document):
    title = db.StringField(max_length=60)
    text = db.StringField()
    done = db.BooleanField(default=False)
    pub_date = db.DateTimeField(default=datetime.datetime.now)
class Tag(db.Document):
    name = db.StringField(max_length=10)
 
    def __unicode__(self):
        return self.name

src/f/l/flask-mongorest-HEAD/example/app.py   flask-mongorest(Download)
class User(db.Document):
    email = db.EmailField(unique=True, required=True)
    first_name = db.StringField(max_length=50)
    last_name = db.StringField(max_length=50)
    emails = db.ListField(db.EmailField())
class Content(db.EmbeddedDocument):
    text = db.StringField()
    lang = db.StringField(max_length=3)
 
class ContentResource(Resource):
    document = Content
 
class Post(db.Document):
    title = db.StringField(max_length=120, required=True)

src/f/l/flask-admin-HEAD/examples/auth-mongoengine/auth.py   flask-admin(Download)
class User(db.Document):
    login = db.StringField(max_length=80, unique=True)
    email = db.StringField(max_length=120)
    password = db.StringField(max_length=64)
 

src/f/l/flask-mongoengine-HEAD/examples/simpleapp/app.py   flask-mongoengine(Download)
class Todo(db.Document):
    title = db.StringField(max_length=60)
    text = db.StringField()
    done = db.BooleanField(default=False)
    pub_date = db.DateTimeField(default=datetime.datetime.now)

src/f/l/flask-mongoengine-HEAD/examples/biggerapp/models.py   flask-mongoengine(Download)
class Todo(db.Document):
    title = db.StringField(max_length=60)
    text = db.StringField()
    done = db.BooleanField(default=False)
    pub_date = db.DateTimeField(default=datetime.datetime.now)

src/c/o/comimoc-1.0.0/comimoc/admin/models.py   comimoc(Download)
class User(db.Document, UserMixin):
    """
    User document for admin purpose only
    """
    login       = db.StringField(required=True, min_length=4, unique=True)
    email       = db.EmailField(required=True, min_length=6, unique=True)
    password    = db.StringField(required=True, min_length=6)

src/c/o/comimoc-1.0.0/comimoc/models.py   comimoc(Download)
class Comment(db.Document):
    """
    A Comment is just a single comment on a page for a website
    """
    website         = db.StringField(required=True)
    page            = db.StringField(required=True)
    content         = db.StringField(required=True)
    when            = db.DateTimeField(default=datetime.datetime.utcnow)
    author_name     = db.StringField(required=True)
    author_email    = db.StringField(required=True)

src/f/l/flask-social-HEAD/tests/test_app/mongoengine.py   flask-social(Download)
    class Role(db.Document, RoleMixin):
        name = db.StringField(required=True, unique=True, max_length=80)
        description = db.StringField(max_length=255)
 
    class User(db.Document, UserMixin):
        email = db.StringField(unique=True, max_length=255)
        password = db.StringField(required=True, max_length=120)
        active = db.BooleanField(default=True)
        remember_token = db.StringField(max_length=255)

src/f/l/Flask-Security-1.7.1/tests/test_app/mongoengine.py   Flask-Security(Download)
    class Role(db.Document, RoleMixin):
        name = db.StringField(required=True, unique=True, max_length=80)
        description = db.StringField(max_length=255)
 
    class User(db.Document, UserMixin):
        email = db.StringField(unique=True, max_length=255)
        username = db.StringField(max_length=255)
        password = db.StringField(required=True, max_length=255)

src/f/l/flask-mongoengine-HEAD/tests/test_basic_app.py   flask-mongoengine(Download)
        class Todo(db.Document):
            title = db.StringField(max_length=60)
            text = db.StringField()
            done = db.BooleanField(default=False)
            pub_date = db.DateTimeField(default=datetime.datetime.now)