Re: Comments Break WSGI-mod_python

Steven Armstrong <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On 12/14/05 20:26, Chad Crabtree wrote:
> I believe I have finally gotten the comments to work.  Rather I can hit
> submit and they show up.  However when I try to view the post after that it
> just displays the front page.  See http://blog.imperialdata.net/blog/
> You can see the comment form on the uncommented upon posts but you cannot
> access the one that has been commented. It will not even show the link on
> the address bar of the browser.
> 
> I have deleted the comments and tried again but the same thing happens.   I
> know the comments are being made because it says so and when I staticly
> render the site it works.
> Here's the relevant part from httpd.conf
> 
>    <VirtualHost xx.xx.xx.xx:80>
>        Serveradmin flaxeater-/[email protected]
>        DocumentRoot /vxx/blog.imperialdata.net/
>        Servername blog.imperialdata.net/
>        ServerAlias blog.imperialdata.net
>        customlog logs/blog.imperialdata.net.log combined
>        <Location /blog/>
>             PythonDebug On
>             SetHandler python-program
>             # set PythonPath to the folders containing the files.
>             PythonPath "['/var/www/html/blog.imperiald
> ata.net/blogsoft/Pyblosxom', '/var/www/html/blog.imperialdata.net']+
> sys.path"
>             PythonHandler mp_wsgi_handler::wsgi_handler
>             # This should be the same as the Location above
>             PythonOption ApplicationPath /blog/
>             PythonOption application wsgi_app::application
>        </Location>
> </virtualhost>
> I do not want to use CGI.  I am baffled as to why this happens.  There are
> no errors reported.  It just sublimely ignores my request to see the
> comments.
> 
> Has anyone seen this? Know what's going on?
> 
> 
> ps.  I had modified comments.py to add a directive to the config.py to make
> the default display the comments so that I didn't have to end the query with
> ?showcomments=yes.  I have removed the changes and the same problem happens
> when using ?showcomments=yes or not it will not show the comments.
> 

Have you tried to run the blog on cgi to test if your config and setup 
basically work? That's how I usually start.

e.g. using something like:

ScriptAlias /blog-cgi /path/to/cgi/and/config/pyblosxom.cgi/
<Directory /path/to/cgi/and/config/pyblosxom.cgi/>
         Options -All -Multiviews +ExecCGI
         AllowOverride None
         Order allow,deny
         Allow from all
</Directory>

Do comments work when running as a cgi?

hth
cheers
Steven


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.