Hi
I realize this might be a question more suitable to a list for uWSGI,
FastCGI or the like, but I couldn't find any other list for it

My problem and a part of the solution, is located here.
http://stackoverflow.com/questions/2308269/django-how-to-access-request-object-in-settings-py

I would like to use uWSGI, but if it works better in another way, then so be
it.
I think to best idea is the one posted by Jack M. in the thread on
stackoverflow, but I have no idea how to implement it for wildcard
subdomains.
I would like to somehow capture the subdomain in the request and make it
available to the python process, but only for that specific request. Since I
am using Django I can just get the subdomain from Django's request object,
but I cannot pass this to the DB or settings layer and that is where I need
it.

As I have written on SO, I need it to select a DB connection so that any
call to a subdomain only uses the DB that is associated with it. This will
greatly simplify my app, and will also give me sharding almost for free,
along with some extra security.

I hope I explained it well enough and that someone has an idea of how to do
this.

Many thanks in advance

-- 
Best regards

Mathias Nielsen
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to