Hi,
This is my First post to the group. I started devotion to Python recently,
and now I have to implement Django (which came out to be something I was
needing as framework). Familiar with Django basics and some core features, I
am still looking for some knwoledge base for certain issues.

1. I need a middleware intercepting request, and finding if client request
has cookies in it. If not, then I want to redirect that request to a page
which  serves a page with some user states (such as random unique uid
assigned so his navigation and page accesses can be recorded). The page
would use Javascript to redirect to the requested page (one the user
requested along with information such as Flash installed, versions,
Browsers(though browsers can also be fetched from the request header),
Client Platform, Java installed or not etc.
When the requested page finds the cookie info, it would better render the
page with flash components/ads whatever, else serve the static picture.
In case the client has no javascript enabled, the page header to auto
redirect would come into effect. Something like such.
So what I need, one middleware for intercepting the request and check the
cookie.

2. I want to know how much impact does exception handling has on
performance. if i have 3-4 try-except handlings, will it take a considerably
more time. (just infomation, though otimization is not a initial
consideration).

3. I was reading some pros-cons about Django. I came to know Django has a
memory problem in deployment environment, leaked memory. I also read many
articles regarding how to prevent such leakage and hogging. I found some
good points in configuring APache. BUt i could not find one official doc
where deployment on Apache+mod_python is described in detail with various
conditions and environments. It took me almost 5hrs to study and configure
media/static content serving with Apache default rather than going through
Django. BUt still I am looking for something much better.
Is there any pointer which I failed to look into for such thing?
Is Django memory problem still present or is patched?

4. HOw can i enable get a benchmarking context such as "Page rendered on
0.0034 seconds " in Django. Is there somethign available.


Hmm, since i asked so may question in Just a single mail, I am sorry. But i
was  excited and could not sleep well in night. I have a presentation
tomorrow to team  handling our company sites and high profile personnel for
better Website.  Excited, I challenged the big guys... I can't find what to
present, i have something in mind, so just finding the answers to these
problems which would help me formulate the final presentation structure.

-- 
-=Ravi=-

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to