django-jack icon indicating copy to clipboard operation
django-jack copied to clipboard

Apache installation

Open phaxio opened this issue 13 years ago • 4 comments

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!

phaxio avatar Jul 28 '11 18:07 phaxio

I've never used django-jack with Apache so I can't really help you. How about using gunicorn? It should be easy.

andreisavu avatar Jul 28 '11 18:07 andreisavu

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.....

devenpateldp avatar Aug 19 '11 11:08 devenpateldp

Do you have a sample virtual host block that you can post?

jnankin avatar Aug 19 '11 13:08 jnankin

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>

devenpateldp avatar Aug 19 '11 13:08 devenpateldp