As of PyBlosxom 1.2, PyBlosxom has support for WSGI.
As of PyBlosxom 1.4, WSGI support has been folded into the main codebase (as opposed to being a separate wsgi_app.py file). But it’s broken until 1.4.2.
There are a bunch of ways to set up PyBlosxom with WSGI. These instructions aren’t as mature as other instructions.
If you find any issues, please let us know.
If you can help with the documentation efforts, please let us know.
Either:
- Python 2.5, OR
- Python 2.4 with the wsgiref library installed: http://cheeseshop.python.org/pypi/wsgiref
Setup depends on what you’re using.
If you’re using mod_wsgi from http://code.google.com/p/modwsgi/ then do the following:
Make sure mod_wsgi is installed correctly and working.
Either:
points to pyblosxom.wsgi, OR
directory on your file system that stores WSGI scripts.
Create a blog—see the instructions for the blog directories, config.py setup and other bits of Setting up a blog in install_cgi.
Create a pyblosxom.wsgi script that looks something like this:
# This is the pyblosxom.wsgi script that powers the _______ blog.
import sys
def add_to_path(d):
if d not in sys.path:
sys.path.insert(0, d)
# call add_to_path with the directory that your config.py lives in.
add_to_path("/home/joe/blog")
# if you have PyBlosxom installed in a directory and NOT as a Python
# library, then call add_to_path with the directory that PyBlosxom
# lives in. For example, if I untar'd pyblosxom-1.5.tar.gz into
# /home/joe/, then add like this:
# add_to_path("/home/joe/pyblosxom-1.5/")
import Pyblosxom.pyblosxom
application = Pyblosxom.pyblosxom.PyBlosxomWSGIApp()
FIXME - need to add instructions here
FIXME - need to add instructions here