Exemplo n.º 1
0
 def configure_extensions(self):
     bootstrap.init_app(self)
     babel.init_app(self)
     mail.init_app(self)
     db.init_app(self)
     migrate.init_app(self, db)
     security._state = security.init_app(
         self, user_datastore, register_form=RegisterForm, confirm_register_form=ConfirmRegisterForm
     )
     configure_admin(self)
     cache.init_app(self)
     maps.init_app(self)
Exemplo n.º 2
0
 def configure_extensions(self):
     bootstrap.init_app(self)
     babel.init_app(self)
     mail.init_app(self)
     db.init_app(self)
     security._state = security.init_app(self,
                                         user_datastore,
                                         register_form=RegisterForm,
                                         confirm_register_form=ConfirmRegisterForm)
     configure_uploads(self, (images_set,))
     #self.configure_admin()
     cache.init_app(self)