Installation nightmare (local dev with win/apache/mod_wsgi/python)
I am trying to develop some web services on my local machine. I have apache installed (via xampp) and mod_wsgi. I am using Python 2.7.3 with virtualenv. I do not have much experience setting stuff up for the web so am feeling my way through this process. I have changed httpd.conf to load mod_wsgi, and to support python files by adding .py to the options line. At the moment I have installed everything and have a dir structure:
Python: C:\Python27
Apache: C:\xampp\apache
Virtualenv: C:\users\
Test service: C\xampp\
The test service contains handler.py and myservice.py.
handler.py:
-------
activate_this = 'C:\Users\
execfile(
from ladon.server.wsgi import LadonWSGIApplic
from os.path import abspath,dirname
application = LadonWSGIApplic
['myservice'],
[dirname(
catalog_name='My Ladon webservice catalog',
catalog_
-------
myservice.py:
-------
from ladon.ladonizer import ladonize
class Calculator(object):
"""
This service does the math, and serves as example for new potential Ladon users.
"""
@ladonize(
def add(self,a,b):
"""
Add two integers together and return the result
@param a: 1st integer
@param b: 2nd integer
@rtype: The result of the addition
"""
return a+b
-------
I have also added the following to my httpd.conf (the error log lines didn't work so I commented them out):
-------
<VirtualHost *:80>
ServerName localhost
ServerAdmin <email address hidden>
LogLevel warn
#ErrorLog ${APACHE_
#CustomLog ${APACHE_
</VirtualHost>
-------
When I visit http://
"[Wed Oct 03 13:12:34 2012] [error] [client ::1] client denied by server configuration: C:/ladon"
Why is it trying to access C:/ladon?? Where is that even configured?
Anymore details or a more complete installation walkthrough would be greatly appreciated, as it looks like a great module, I just can't get it to work!!!
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- ladon Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask John Harris for more information if necessary.