Home » All
  • 28
  • 08月

After almost 6 months of development time (with breaks, obviously), I'm happy to announce new version of the Flask-Admin package.

So, what's new?

Table of Contents:

[TOC]

Python 3 Support

Flask-Admin (and Flask-BabelEx) are now Python 3 compatible. I only tested them with Python 3.3, so can ...

Read More...

  • 28
  • 08月

当然,这是一种非常不明智的做法,只是一种临时性的手段。301重定向应该由服务器层面的应用程序(比如NGINX,APACHE,IIS等)来完成。

代码示例如下:

def RedirectMiddleWare(request):
    url = None
    domain = 'www.digwtx.com'
    try:
        host, port = request.host.split(':')
        path = request.path
    except:
        host = request.host
        port = 80
        path = request.path

    if host != domain:
        print 'do 301'
        if port == 80:
            url = 'http://%s%s' % (domain ...

Read More...

  • 28
  • 08月

This is the fifteenth 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
  • 08月

This is the fifteenth 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
  • 08月

This is the fourteenth 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
  • 08月

This is the thirteenth 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
  • 08月

This is the twelfth 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
  • 08月

This is the eleventh 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
  • 08月

This is the tenth 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
  • 08月

This is the ninth 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...