Re: psycopg2, connection setup performance, and other issues

2007-02-07 Thread Michael Radziej
[EMAIL PROTECTED] schrieb: > We're using Django quite heavily at Chesspark.com, but have been > having severe load problems of late. I suspected database > bottlenecking and I turned on query logging and analyzed the results. > > To my surprise, 25% of all database time is the call to SET TIME

Developer documentation?

2007-02-07 Thread James Bennett
(unrelated to the other message about documentation I just sent) After seeing Malcolm mention it in a blog comment, I got to thinking about the various "developer-ish" things in Django that currently have no documentation, but are still useful to folks who know what they're doing -- Malcolm's wri

Documentation issues hit list

2007-02-07 Thread James Bennett
With the recent talk of things that need to get done before 1.0, I think something that'd be great to hit is a list of the thing which most commonly confuse new users, or which they have the hardest time figuring out -- getting that information into the official docs would, hopefully, save a lot o

Re: passing arguments to the login_required decorator

2007-02-07 Thread Jannis Leidel
+1 from me, the silent reader Am 07.02.2007 um 21:12 schrieb James Bennett: > > Forwarding this here, because the problem would go away if we could > get some attention on ticket #3185: > > http://code.djangoproject.com/ticket/3185 > > > > > -- Forwarded message -- > From: Mike H

psycopg2, connection setup performance, and other issues

2007-02-07 Thread [EMAIL PROTECTED]
We're using Django quite heavily at Chesspark.com, but have been having severe load problems of late. I suspected database bottlenecking and I turned on query logging and analyzed the results. To my surprise, 25% of all database time is the call to SET TIME ZONE. Another 10-15% is the isolation

Re: heads-up: changeset 4459 broke admin (?)

2007-02-07 Thread Russell Keith-Magee
On 2/7/07, Michael Radziej <[EMAIL PROTECTED]> wrote: > > Hi, > > we are still waiting for confirmation, but it seems that with > changeset 4459, adding inline items in the admin is broken. See > ticket #3447. The resulting error looks like this: I've reverted [4459]. Admin should be back to norm

Re: Some kind of django.contrib.stats?

2007-02-07 Thread Noah Gift
I second that. I have some example awstats calls I did in python just for that purpose, if anyone wants to take a look. One tricky thing a client asked me to do was to parse the awstats config file and insert custom html every month, so you could look at past months full reports. I would be kind

Re: Some kind of django.contrib.stats?

2007-02-07 Thread David Larlet
2007/2/7, Tom Dyson <[EMAIL PROTECTED]>: > > > I wonder if something like bbclone [1] (especially the "live" view > > [2]) exists in python? I've just found Peastat [3] which looks new but > > interesting (fortunately, the author is maybe on this list). > > Yes, I am. :) Great :) > the two impor

Re: Auto-escaping patch

2007-02-07 Thread Malcolm Tredinnick
[This is very off-topic, so I'll make this my last post on this topic. Email me directly if you want more info.] On Wed, 2007-02-07 at 04:01 -0800, Nicola Larosa (tekNico) wrote: > Malcolm Tredinnick wrote: > > But it's all "git" under the covers. I wrote up a brief description when > > I started

Fwd: passing arguments to the login_required decorator

2007-02-07 Thread James Bennett
Forwarding this here, because the problem would go away if we could get some attention on ticket #3185: http://code.djangoproject.com/ticket/3185 -- Forwarded message -- From: Mike H <[EMAIL PROTECTED]> Date: Feb 7, 2007 6:16 AM Subject: passing arguments to the login_required

Re: triage: Problem for the up-loading of non-ASCII character file name.

2007-02-07 Thread Ivan Sagalaev
Michael Radziej wrote: > No, I'd propose simply to use the file system's encoding for files > within the file system, that's all, This will fail in some cases. The problem is that file system itself doesn't check (nor enforce) any encoding in file names. And files may come to server from differ

Is That Believable !!

2007-02-07 Thread Lucy
*Media Mall Toolbar : Advanced 1-click System to the Following Items :* *- 200 Live TV Channels - FM Radio With alot of Radio Stations and You Can Add More. - Live WebCams around The World - Tools and Essentials as : Online Spyware Scanners,Online Virus Scanners and Online Firewall

Re: Multiple Django on Apache

2007-02-07 Thread Moses Ting
Thanks for the info, having PythonInterpreter in there worked!! Thanks On Feb 6, 6:09 pm, Sandro Dentella <[EMAIL PROTECTED]> wrote: > On Tue, Feb 06, 2007 at 12:18:45PM -0800, Moses Ting wrote: > > > Hello, > > > I've been having ALOT of trouble getting multiple Django instances to > > work on

heads-up: changeset 4459 broke admin (?)

2007-02-07 Thread Michael Radziej
Hi, we are still waiting for confirmation, but it seems that with changeset 4459, adding inline items in the admin is broken. See ticket #3447. The resulting error looks like this: Exception Type: ProgrammingError Exception Value:ERROR: invalid input syntax for integer: "" http:

Re: Auto-escaping patch

2007-02-07 Thread Nicola Larosa (tekNico)
Malcolm Tredinnick wrote: > But it's all "git" under the covers. I wrote up a brief description when > I started using this a few months ago: > http://www.pointy-stick.com/blog/topics/software/version%20control/ . (I know, I should have directly commented on that page, and I would have, if there

Re: triage: Problem for the up-loading of non-ASCII character file name.

2007-02-07 Thread Gábor Farkas
Michael Radziej wrote: > Gábor Farkas: >> >> 1. we do not mandate yet that GET/POST data is in settings.DEFAULT_CHARSET > > We don't mandate any particular encoding in > settings.DEFAULT_CHARSET? Take a look at ticket #951 and the recent > discussion about it here. i'm sorry, are you sure that i

Re: Some kind of django.contrib.stats?

2007-02-07 Thread Tom Dyson
> I wonder if something like bbclone [1] (especially the "live" view > [2]) exists in python? I've just found Peastat [3] which looks new but > interesting (fortunately, the author is maybe on this list). Yes, I am. :) I'm planning to release Peastat 0.3 at tonight's Oxford Geek Night [1], and i

Re: Some kind of django.contrib.stats?

2007-02-07 Thread Afternoon
The problem of server and application level stats is that they are fairly easy to implement and attractive, but they're hideously inaccurate. First you have to ignore robot traffic, then you have to accurately sessionise, then build the reporting interface, which must be very powerful if it is to

Re: triage: Problem for the up-loading of non-ASCII character file name.

2007-02-07 Thread Michael Radziej
Gábor Farkas: > but, if i understand correctly, you propose it to behave like: > > > = > filename1 = > request.POST.somehow_get_the_filename_i_do_not_want_to_look_it_up_right_now() > > # let's pray that the user's html templates > # are encoded using settings.DEFAUL

Re: Auto-escaping patch

2007-02-07 Thread Michael Radziej
Malcolm Tredinnick: > I didn't change django.utils.html.escape() though, since I was trying to > avoid breaking existing code and that function can be called from > outside the templating system (in that sense, the naming is logical; > away from the templating system, escape() escapes always). The

Re: triage: Problem for the up-loading of non-ASCII character file name.

2007-02-07 Thread Gábor Farkas
Michael Radziej wrote: > Gábor Farkas: >> Michael Radziej wrote: >>>* What encoding does python use if you pass unicode to open()? >> for os.listdir it uses sys.getfilesystemencoding(), so i assume it does >> the same for open(). >> >> so usually it does the correct thing. >> >> so using unic

Re: Auto-escaping patch

2007-02-07 Thread Malcolm Tredinnick
On Wed, 2007-02-07 at 10:17 +0100, Michael Radziej wrote: > Malcolm Tredinnick: > > I just got back today from overseas, so after I've worked out which way > > is up I'll have a look at your fixes and fill in the missing bits > > (newforms + admin). > > Hey, nice to hear you're back and safe! >

Re: Auto-escaping patch

2007-02-07 Thread Michael Radziej
Malcolm Tredinnick: > I just got back today from overseas, so after I've worked out which way > is up I'll have a look at your fixes and fill in the missing bits > (newforms + admin). Hey, nice to hear you're back and safe! It would certainly be good if you could look into the new patches, there

Re: Auto-escaping patch

2007-02-07 Thread Malcolm Tredinnick
Hey Michael, On Wed, 2007-02-07 at 09:11 +0100, Michael Radziej wrote: > Hi, > > I'd like to revive the discussion about autoescape (note that it is > *not* on by default). I have brought the patches up to date (see the > notes in the ticket, #2359), and I'm starting to use this now in my > own

Re: Some kind of django.contrib.stats?

2007-02-07 Thread zenx
The problem I see is that I want to save stats info about each object in itself because that gives me versatility. So could I show info about every object in my own django views and If I want to show for example the most viewed user profiles or any other query ordered by stats I could do it. I t

Re: triage: Problem for the up-loading of non-ASCII character file name.

2007-02-07 Thread Michael Radziej
Gábor Farkas: > Michael Radziej wrote: >>* What encoding does python use if you pass unicode to open()? > for os.listdir it uses sys.getfilesystemencoding(), so i assume it does > the same for open(). > > so usually it does the correct thing. > > so using unicode filenames are probably fine

Re: Auto-escaping patch

2007-02-07 Thread Michael Radziej
Hi, I'd like to revive the discussion about autoescape (note that it is *not* on by default). I have brought the patches up to date (see the notes in the ticket, #2359), and I'm starting to use this now in my own projects (with the exception of the admin patch which I have no use for). I can only

Re: triage: Problem for the up-loading of non-ASCII character file name.

2007-02-07 Thread Gábor Farkas
Michael Radziej wrote: > Hi Tsuyuki! > > tsuyuki makoto: >> Proposed solution: punicode conversion before call >> django.util.text.get_valid_filename. > > Why punycode? I'd think that most filesystems these days support UTF-8 > (though, with different normalization, which *is* a problem). > >