| Line | |
|---|
| 1 | # -*- coding: utf-8 -*- |
|---|
| 2 | """ |
|---|
| 3 | zine |
|---|
| 4 | ~~~~ |
|---|
| 5 | |
|---|
| 6 | Zine is a simple python weblog software. |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | Get a WSGI Application |
|---|
| 10 | ====================== |
|---|
| 11 | |
|---|
| 12 | To get the WSGI application for Zine you can use the `make_app` |
|---|
| 13 | function. This function can either create a dispatcher for one instance |
|---|
| 14 | or for multiple application instances where the current active instance |
|---|
| 15 | is looked up in the WSGI environment. The latter is useful for mass |
|---|
| 16 | hosting via mod_wsgi or similar interfaces. |
|---|
| 17 | |
|---|
| 18 | Here a small example `zine.wsgi` for mod_wsgi:: |
|---|
| 19 | |
|---|
| 20 | from zine import get_wsgi_app |
|---|
| 21 | application = get_wsgi_app('/path/to/instance') |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | :copyright: (c) 2010 by the Zine Team, see AUTHORS for more details. |
|---|
| 25 | :license: BSD, see LICENSE for more details. |
|---|
| 26 | """ |
|---|
| 27 | __version__ = '0.2-dev' |
|---|
| 28 | __url__ = 'http://zine.pocoo.org/' |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | # implementation detail. Stuff in __all__ and the initial import has to be |
|---|
| 32 | # the same. Everything that is not listed in `__all__` or everything that |
|---|
| 33 | # does not start with two leading underscores is wiped out on reload and |
|---|
| 34 | # the core module is *not* reloaded, thus stuff will get lost if it's not |
|---|
| 35 | # properly listed. |
|---|
| 36 | from zine._core import setup, get_wsgi_app, override_environ_config |
|---|
| 37 | __all__ = ('setup', 'get_wsgi_app', 'override_environ_config') |
|---|
Note: See
TracBrowser
for help on using the repository browser.