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
A
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 pass
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 = make_tls_property
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.
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 Googl
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:
> Hi all,
>
> I am really ne
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 ==
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 do intend to participate.
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 of the biggest reasons wh
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 should be complete now. I'm still cleaning
10 matches
Mail list logo