Former-commit-id:a02aeb236c
[formerly9f19e3f712
] [formerlya02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]] Former-commit-id:06a8b51d6d
Former-commit-id:8e80217e59
[formerly3360eb6c5f
] Former-commit-id:377dcd10b9
26 lines
796 B
Python
Executable file
26 lines
796 B
Python
Executable file
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
Manage web.py like application
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
A small example application that is built after the web.py tutorial. We
|
|
even use regular expression based dispatching. The original code can be
|
|
found on the `webpy.org webpage`__ in the tutorial section.
|
|
|
|
__ http://webpy.org/tutorial2.en
|
|
|
|
:copyright: (c) 2009 by the Werkzeug Team, see AUTHORS for more details.
|
|
:license: BSD, see LICENSE for more details.
|
|
"""
|
|
import os
|
|
import sys
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), 'webpylike'))
|
|
from example import app
|
|
from werkzeug import script
|
|
|
|
action_runserver = script.make_runserver(lambda: app)
|
|
action_shell = script.make_shell(lambda: {})
|
|
|
|
if __name__ == '__main__':
|
|
script.run()
|