Home » flask
  • 17
  • 01月

This is the eighth article in the series in which I document my experience writing web applications in Python using the Flask microframework.

The goal of the tutorial series is to develop a decently featured microblogging application that demonstrating total lack of originality I have decided to call microblog.

Here …

Read More...

  • 03
  • 01月

This is the seventh article in the series in which I document my experience writing web applications in Python using the Flask microframework.

The goal of the tutorial series is to develop a decently featured microblogging application that demonstrating total lack of originality I have decided to call microblog.

Here …

Read More...

  • 02
  • 01月

This is the sixth article in the series in which I document my experience writing web applications in Python using the Flask microframework.

The goal of the tutorial series is to develop a decently featured microblogging application that demonstrating total lack of originality I have decided to call microblog.

Here …

Read More...

  • 01
  • 01月

This is the fifth article in the series in which I document my experience writing web applications in Python using the Flask microframework.

The goal of the tutorial series is to develop a decently featured microblogging application that demonstrating total lack of originality I have decided to call microblog.

Here …

Read More...

  • 31
  • 12月

This is the fourth article in the series in which I document my experience writing web applications in Python using the Flask microframework.

The goal of the tutorial series is to develop a decently featured microblogging application that demonstrating total lack of originality I have decided to call microblog.

Here …

Read More...

  • 28
  • 12月

This is the third article in the series in which I document my experience writing web applications in Python using the Flask microframework.

The goal of the tutorial series is to develop a decently featured microblogging application that demonstrating total lack of originality I have decided to call microblog.

Here …

Read More...

  • 26
  • 12月

This is the second article in the series where I document my experience writing web applications in Python using the Flask microframework.

The goal of the tutorial series is to develop a decently featured microblogging application that demonstrating total lack of originality I have decided to call microblog.

Here is …

Read More...

  • 24
  • 12月

This is the first article in a series where I will be documenting my experience writing web applications in Python using the Flask microframework.

Here is an index of all the articles in the series that have been published to date:

Read More...

  • 24
  • 10月

Flask-Themes版本0.1.3, 主要提示无法找到模板文件,经过跟踪发现有个不知道算不算BUG的地方(330行):

def list_templates(self):
    res = []
    ctx = _request_ctx_stack.top
    if USING_BLUEPRINTS and not self.as_blueprint:
        fmt = '_themes/%s/%s'
    else:
        fmt = '%s/%s'
    for ident, theme in ctx.app.theme_manager.themes.iteritems():
        res.extend((fmt % (ident, t)).encode("utf8") for t in heme.jinja_loader.list_templates())
    return …

Read More...

  • 24
  • 10月

form_widget_args

这个就很强大了,之前的版本不能给Widget定义参数,1.0.5版本实现了。不多说了,直接看代码吧

class MyModelView(BaseModelView):
    form_widget_args = {
        content: {
            rows: 10,
            style: color: black
        }
    }

after_model_change

def after_model_change(form, model, is_created):
    pass

Perform some actions after a model was created or updated and committed to the database.

Called from create_model after successful database commit.

定义当模型创建或者修改更新到数据库之后执行的一些动作,比如博客的PING。

多语言支持 …

Read More...