Re: ANN: Server upgrade on djangoproject.com

2011-01-29 Thread Russell Keith-Magee
On Sat, Jan 29, 2011 at 5:45 AM, Jacob Kaplan-Moss wrote: > On Fri, Jan 28, 2011 at 3:33 PM, Jacob Kaplan-Moss wrote: >> I'm starting the switchover to the new djangoproject.com server right >> now. Might be around 5 mins of downtime or so. > > Migration

Re: One Django instance, hundreds of websites

2011-01-29 Thread Russell Keith-Magee
On Sat, Jan 29, 2011 at 8:55 PM, Jari Pennanen wrote: > Certainly something new for me. > > That does look like a rather cool. Essentially if that works one could > save even the request object to thread "global" and it would be > accessible anywhere. ... and this is one

Re: Google Summer of Code 2011

2011-01-29 Thread Russell Keith-Magee
2011/1/29 Lauri Võsandi : > Hello, > > GSoC was just announced few days ago. Is Django going to participate > on GSoC as mentoring organization? Related blogpost is here: > > http://google-opensource.blogspot.com/2011/01/google-summer-of-code-announced-at-lca.html Yes, we

Re: One Django instance, hundreds of websites

2011-01-29 Thread Jari Pennanen
Hi! I suggest you to look on to this _patch_setattr I cooked. I noticed that it is also necessary to patch the __setattr__ of the settings object in order to allow changes to the settings.SITE_ID again. Following test would fail after TLSProperty: settings.SITE_ID = 42 assert settings.SITE_ID

Re: Deploying a django application to apach2 on Ubuntu

2011-01-29 Thread David P. Novakovic
Hey, this post is definitely for the django-users mailing list. This mailing list is solely for the discussion of django development itself. That is, discussion about development of the core libraries. Cheers, David On Sat, Jan 29, 2011 at 6:46 PM, Maxim Mai wrote: >

Google Summer of Code 2011

2011-01-29 Thread Lauri Võsandi
Hello, GSoC was just announced few days ago. Is Django going to participate on GSoC as mentoring organization? Related blogpost is here: http://google-opensource.blogspot.com/2011/01/google-summer-of-code-announced-at-lca.html -- You received this message because you are subscribed to the

Deploying a django application to apach2 on Ubuntu

2011-01-29 Thread Maxim Mai
Hi all, I am really new to django and apache. I've just finished a django application recently, and now I am have problems of deploying it to a server. system environments: ubuntu 10.10 apache2 django1.2 php5 mod_wsgi python2.6 problems are: 1. I think my apache2 configures are all messed up.

Re: One Django instance, hundreds of websites

2011-01-29 Thread Jari Pennanen
Sorry about second post but I'm so thrilled about this thread local approach! Thanks Waldemar. This changes everything, EVERYTHING. I can just do: settings.__class__.SITE_ID = make_tls_property() settings.__class__.MEDIA_URL = make_tls_property() settings.__class__.MEDIA_ROOT =

Re: One Django instance, hundreds of websites

2011-01-29 Thread Jari Pennanen
Certainly something new for me. That does look like a rather cool. Essentially if that works one could save even the request object to thread "global" and it would be accessible anywhere. It would solve many problems, such as django's authentication middleware's shortcoming where it does not

Re: One Django instance, hundreds of websites

2011-01-29 Thread Waldemar Kornewald
Hi, it's possible to manipulate the settings object in a thread-safe way. Here's our dynamic site middleware: https://bitbucket.org/wkornewald/djangotoolbox/src/535feb981c50/djangotoolbox/sites/dynamicsite.py https://bitbucket.org/wkornewald/djangotoolbox/src/535feb981c50/djangotoolbox/utils.py