also in routes it's possible to config one url to diffetent actions on
GET and POST requests.
something like this:
m.connect('myform', controller='form', action='handle_form',
conditions=dict(method=['POST']))
m.connect('myform', controller='form', action='show_form'))
On Jan 29, 3:44 pm, Steve
orm is abstraction over database query language. you can make queries
in oo-terms. so your business logic stays clear and you dont care
about object persistence.
also with orm you can change backend (from MySQL to Postgre for ex.)
just
by edit config. if you work with native sql its not always po
27;s exactly what I've got there.
> > Running Windows by the way.
>
> > On Jan 21, 4:53 pm, Dmitry Lipovoi <[EMAIL PROTECTED]> wrote:
> > > try to add
>
> > > 127.0.0.1 localhost
>
> > > to /etc/hosts
--~--~-~--~~~---~
try to add
127.0.0.1 localhost
to /etc/hosts
On Jan 21, 5:31 pm, Pavel Skvazh <[EMAIL PROTECTED]> wrote:
> Hi.
>
> Set up.
> Development server
>
> [server:main]
> use = egg:Paste#http
> host = 0.0.0.0
> port = 2051
>
> routing.py
> map.append_slash = True
> map.sub_domains = True
> map.s