andreisavu / django-jack

Jack and the Beanstalkd. Webapp for basic work queue administration.
http://kr.github.com/beanstalkd/
Apache License 2.0
60 stars 12 forks source link

Apache installation #5

Open phaxio opened 13 years ago

phaxio commented 13 years ago

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

Thanks!

andreisavu commented 13 years ago

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

devenpateldp commented 13 years ago

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

jnankin commented 13 years ago

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

devenpateldp commented 13 years ago
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>