[Baypiggies] VirtualEnv and Django question

Brent Tubbs brent.tubbs at gmail.com
Fri Feb 25 04:40:55 CET 2011


Grrr my clumsy thumb hit a bad key and sent a half finished email...

Anyway I was going to say that I made a package for configuring Nginx,
Gunicorn, Supervisord, and Nginx for you, and setting up the
virtualenv.  See http://pypi.python.org/pypi/silk-deployment/0.2.4 .

Brent

On Thu, Feb 24, 2011 at 7:39 PM, Brent Tubbs <brent.tubbs at gmail.com> wrote:
> A few thoughts:
>
> - Like other commenters, I like to do 'from settings import *' at the
> top of local_settings.py, and use local_settings as the value for
> DJANGO_SETTINGS_MODULE.
> - Have you ever tried Gunicorn as a replacement for Apache and
> mod_wsgi?  See http://gunicorn.org/.  It's dead easy, and because
> Gunicorn itself is a Python package that installs into your
> virtualenv, you can just run the gunicorn binary installed there in
> order to make sure your virtualenv is respected by Django.
> - The downside to using gunicorn is that you need to have something
> start the process and keep it going.  Supervisord works well for this.
> - I like the Ubuntu+Nginx+Gunicorn+Supervisord stack enough that I made
>
>
>
> On Thu, Feb 24, 2011 at 12:57 PM, Eric Walstad <ewalstad at gmail.com> wrote:
>> Hey Glen,
>>
>> On Thu, Feb 24, 2011 at 11:04 AM, Glen Jarvis <glen at glenjarvis.com> wrote:
>>> We have a
>>> package (recaptcha client) that is packaged from easy_install (and I think
>>> some non-standard customization from the creators) that can't be found with
>>> this environment.
>>
>> Have you tried adding /path/to/the/dir/containing/recaptcha/package to
>> the  PythonPath line in your VH conf?
>>
>> You can find what recaptcha package your system is using, and where it
>> is on your file system, by activating your virtualenv, starting the
>> python shell and then:
>>
>> import os.path
>> import recaptcha as captcha # Or whatever it is named
>> print os.path.dirname(os.path.realpath(captcha.__file__[:-1]))
>>
>>
>> Hth,
>>
>> Eric.
>> _______________________________________________
>> Baypiggies mailing list
>> Baypiggies at python.org
>> To change your subscription options or unsubscribe:
>> http://mail.python.org/mailman/listinfo/baypiggies
>


More information about the Baypiggies mailing list