So the docs make it clear that having mod_python and mod_wsgi enabled together
can cause strange problems because they can pull in different pythons and such.
I wonder if it's possible for mod_wsgi to emit some loud warnings (presumably
to the Apache error log) if it detects that mod_python is
I have an Apache-WSGI-web2py configuration that is working well.
Now I would like to add the behavior that requests on the bare domain
(something.com/what/ever) is rewritten to use www
(www.something.com/what/ever). In a generic Apache setup, this is easy
using a rewrite condition + rewrite
On 5 October 2012 16:03, Marc Abramowitz msabr...@gmail.com wrote:
So the docs make it clear that having mod_python and mod_wsgi enabled
together can cause strange problems because they can pull in different
pythons and such.
I wonder if it's possible for mod_wsgi to emit some loud warnings
Sorry for the slow reply. Been trying to catch up with stuff after my
extended holiday and the reply to this is going to be a bit involved.
First thing want to comment on is:
Here's my apache config, running worker mpm.
StartServers10
MaxClients 400
MinSpareThreads 25
On 5 October 2012 17:57, Chris ch...@spitfireinnovation.com wrote:
I have an Apache-WSGI-web2py configuration that is working well.
Now I would like to add the behavior that requests on the bare domain
(something.com/what/ever) is rewritten to use www
(www.something.com/what/ever). In a
Thanks for the response Graham, given your questions i trimmed down and
reworked my vhost config and found my mistake. First it ran the script,
but did not require authentication to the WSGIScriptAlias target, but did
require auth if you requested the directory contents (which it should). As
With Mountain lion it comes with versions 2.3, 2.5, 2.6, 2.7. These are
installed as you have correctly stated however the installation is a little
different compared to a linux installation.
The version 3.2 that I have installed is from the python site at the
following location
I was wondering if mod_wsgi eventually allows me to embed Python code
directly into HTML such as mod_python does?
I have installed mod_wsgi but I came short to finding any topic that
pointed me into a direction for allowing me to directly embedding Python
code into an HTML file.
What I cant
Hi Marc,
I think you are not understanding what mod_wsgi is.
*The aim of mod_wsgi is to implement a simple to use
Apachehttp://httpd.apache.org/ module
which can host any Python http://www.python.org/ application which
supports the Python WSGI http://www.wsgi.org/interface. The module would
be
Hey Jason,
Thank you for the quick reply.
For some reason I was assuming mod_wsgi was embedding Python in the PSP
way as well.
But you lost me on your html code there. What did you just do? Did you just
after all implement Python syntax in HTML without any template/framework?
My other
Hi Marc,
I'm using AppStruct, which is a python framework that I developed to
interface with mod_wsgi. I really dislike some of the overhead and
complexity introduced by MVC type frameworks for simple projects.
I've put together a pretty complete example of using AppStruct. This is
designed to
With otool -L showing the correct result, what then was the result
when you tried to actually use it with Apache???
If there is still a run time linking issue causing Apache not to
start, you can usually see the error by running:
sudo /usr/sbin/apachectl -t
It will show any linker error as
Template systems which embed Python code directly into HTML is
generally regarded as bad practice in the Python world.
You are better off just learning about one of the more modern template systems.
I would very much suggest you try Flask and the Jinja2 that it
supports. This is going to be the
Graham - I respectfully disagree, but not from the point of view that you
may think I am. When looking at frameworks, Django probably pops up as the
first one for first time Python people that want to expand to the web.
Django is obscure, tedious and requires to adhere by principles and only
The simple reality is that Python code indenting is significant. This
does not work very well when it comes to trying to embed Python code
inside of HTML. It is too easy, with editors not helping, to screw up
the indenting of the Python code and thereby break your page without
the person writing
Thanks for your comments Graham, and as always, thank you for providing
mod_wsgi to make all of these other things possible.
I'll take the discussion with Marc off-list.
On Fri, Oct 5, 2012 at 7:50 PM, Graham Dumpleton graham.dumple...@gmail.com
wrote:
The simple reality is that Python code
16 matches
Mail list logo