librelist archives

« back to archive

Routes in separate file

Routes in separate file

From:
Aleksei Pokrevskiy
Date:
2011-02-20 @ 09:38
How to specify URL routes not in decorators but all in in separate file?

Re: [flask] Routes in separate file

From:
Christian Ştefănescu
Date:
2011-02-20 @ 09:45
The excellent documentation on Flask says you should do it like this:
http://flask.pocoo.org/docs/api/?highlight=url#flask.Flask.add_url_rule

On Sun, Feb 20, 2011 at 10:38 AM, Aleksei Pokrevskiy <kpdpok@gmail.com>wrote:

> How to specify URL routes not in decorators but all in in separate file?

Re: [flask] Routes in separate file

From:
Aleksei Pokrevskiy
Date:
2011-02-20 @ 09:50
oh
thanks a lot

2011/2/20 Christian Ştefănescu <st.chris@gmail.com>

> The excellent documentation on Flask says you should do it like this:
> http://flask.pocoo.org/docs/api/?highlight=url#flask.Flask.add_url_rule
>
>
> On Sun, Feb 20, 2011 at 10:38 AM, Aleksei Pokrevskiy <kpdpok@gmail.com>wrote:
>
>> How to specify URL routes not in decorators but all in in separate file?
>
>
>