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

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

src/f/l/flask-admin-HEAD/examples/mongoengine/simple.py   flask-admin(Download)
# Create models
db = MongoEngine()
db.init_app(app)
 
 

src/f/l/flask-mongoengine-HEAD/examples/simpleapp/app.py   flask-mongoengine(Download)
 
db = MongoEngine()
db.init_app(app)
 
DebugToolbarExtension(app)

src/f/l/flask-admin-HEAD/examples/auth-mongoengine/auth.py   flask-admin(Download)
app.config['MONGODB_SETTINGS'] = {'DB': 'test'}
db = MongoEngine()
db.init_app(app)
 
 

src/i/n/inventory-checkin-HEAD/core/__init__.py   inventory-checkin(Download)
 
db = MongoEngine()
db.init_app(app)
 
cache = Cache(config=settings.CACHE)

src/f/l/flask-mongoengine-HEAD/tests/test_basic_app.py   flask-mongoengine(Download)
            pub_date = db.DateTimeField(default=datetime.datetime.now)
 
        db.init_app(app)
 
        Todo.drop_collection()
        app.config['TESTING'] = True
        db = MongoEngine()
        db.init_app(app)
        self.assertTrue(db.connection.tz_aware)
 
        app.config['MONGODB_SETTINGS'] = {
            'DB': 'testing',
            'alias': 'tz_aware_false',
        }
        db.init_app(app)
        app.config['TESTING'] = True
        db = MongoEngine()
        db.init_app(app)
        self.assertTrue(db.connection['tz_aware_true'].tz_aware)
        self.assertFalse(db.connection['tz_aware_false'].tz_aware)

src/g/a/gae-flask-todo-HEAD/lib/flask_admin/tests/mongoengine/__init__.py   gae-flask-todo(Download)
 
    db = MongoEngine()
    db.init_app(app)
 
    admin = Admin(app)

src/f/l/flask-mongoengine-HEAD/tests/test_pagination.py   flask-mongoengine(Download)
        self.app = app
        self.db = MongoEngine()
        self.db.init_app(app)
 
    def tearDown(self):

src/f/l/flask-mongoengine-HEAD/tests/test_forms.py   flask-mongoengine(Download)
        self.app = app
        self.db = MongoEngine()
        self.db.init_app(app)
 
    def tearDown(self):

src/f/l/flask-admin-HEAD/flask_admin/tests/mongoengine/__init__.py   flask-admin(Download)
 
    db = MongoEngine()
    db.init_app(app)
 
    admin = Admin(app)

src/f/l/Flask-Admin-1.0.8/flask_admin/tests/mongoengine/__init__.py   Flask-Admin(Download)
 
    db = MongoEngine()
    db.init_app(app)
 
    admin = Admin(app)