django-jack
django-jack copied to clipboard
Apache installation
Would you be able to post a short page on how to install django-jack on apache?
I ran python setup.py install, and then found the installation in "/usr/local/lib/python2.7/dist-packages/jack"
However with the virtual host configuration below, I keep getting this error: TemplateSyntaxError: Caught ImportError while rendering: No module named beanstalk
Here's my config:
<VirtualHost *:80> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE jack.settings PythonPath "['/usr/local/lib/python2.7/dist-packages/jack'] + sys.path" ServerName localbeanstalk.com </VirtualHost>
Thanks!
I've never used django-jack with Apache so I can't really help you. How about using gunicorn? It should be easy.
yes need to download beanstalkc from http://github.com/earl/beanstalkc uncompress this file got uncompressed folder and python setup.py install restart apache once and seee.....
Do you have a sample virtual host block that you can post?
ServerName xyz.com
ServerAdmin webmaster@localhost
DocumentRoot /home/application_path
<Directory /home/application_path>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler mod_python .py
PythonHandler mod_python.py
PythonDebug On
</Directory>