Tag Info

New answers tagged

0

Seems like the server I was working with were using python 2.7, installing packages from yum installed only 2.6 version. Used pip2.7 to install necessary packages.


0

Turns out the answer was that it was an old installation. 2.8.4 in staging vs 3 in production . installing the latest rabbit solved it. here is the installation script I used: vim install_latest_rabbit.sh #!/bin/sh cat <<EOF > /etc/apt/sources.list.d/rabbitmq.list deb http://www.rabbitmq.com/debian/ testing main EOF curl ...


2

Try this piece of code proxy = urllib2.ProxyHandler({'http': '127.0.0.1:8080'}) opener = urllib2.build_opener(proxy) urllib2.install_opener(opener) urllib2.urlopen('http://www.google.com')


0

I have created plugin. If you are interested in it you can check https://github.com/greendev5/openvpn-python P.S. This plugin is a little bit pointless, because you can use OpenVPN management interface to get notifications about connections and process them without blocking OpenVPN main thread. Maybe someone will think plugin is more easy than listening the ...


1

The problem encountered here was caused by python or the vcsa-deploy utility attempting to use the proxy defined in the shell environment: https_proxy=http://proxy.example.com:3128/ I ran vcsa-deploy with strace and saw that it was attempting to use that proxy. I used the unset https_proxy command to temporarily disable that proxy, repeated the ...


1

Another solution that fit my way of configuring WSGI was changing the WSGIScriptAlias line: WSGIDaemonProcess website user=user group=group python-path=/path/to/venv/website:/path/to/venv/lib/python2.7/site-packages WSGIScriptAlias /website /path/to/venv/website/wsgi.py process-group=website application-group=%{GLOBAL} <Location /website> ...


0

Why do people put Nginx in the front? Nginx is an asynchronous web-sever. It means it doesn't dedicate a thread or a process per connection. Instead it uses OS' preferred socket polling library and thus is able to handle hundred thousands of connections. Why should you, as an application developer, care? Because Nginx buffers connections and only passes ...


0

It doesn't look like this is possible using purely .htaccess and mod_rewrite so it will either have to be done using ScriptAlias or in the script itself.


1

Sorry for a year late answer! I had the same problem and fixed it, I don't know if you changed the name of a directory after creating the virtual environment, I did though. If so then here's what I did. 1.) deactivate your v-env. After the fix you need to restart the v-env, so might as well deactivate now. right? 2.) Now, since we created the v-env in a ...


0

I was facing same problem but fortunately after digging into the apache settings I was able to resolve this. Here is my apache configure file i.e 000-default.conf which serves default page instead of my app. Note*: Examples are being shown below with the help of OP apache configuration. <VirtualHost *:80> # The ServerName directive sets the ...


1

Read: http://blog.dscpl.com.au/2012/10/requests-running-in-wrong-django.html Do not use os.environ.setdefault(), use os.environ[]. Also use daemon mode of mod_wsgi and not embedded mode. http://blog.dscpl.com.au/2012/10/why-are-you-using-embedded-mode-of.html To add to this after your update, the setting of the environment variable is usually not ...



Top 50 recent answers are included