Nov 03
But sadly, it’s unusable for me. It really, really bums me out.
The bugs responsible are here and here. There’s related reading in Google Groups and also a related ticket here.
I want to put out a bounty for this bug, but I don’t want to step on the toes of the developers. Any fix that would be worth paying for would have to be one that the developers would approve of. I don’t even know what work might already be done on it. I guess I haven’t browsed the source yet to see what’s happening lately. That will be the next step.
Does anyone know if any work is being done on this? I have a few projects that I want to get started using Django, but this has taken the wind out of my sails. :(
Update: There are a few more places to find related info.
Oct 16
Today’s screenshot is brought to you by the Django Admin interface:

For those of you who don’t recognize this, it’s the GNOME System Monitor applet. The dark blue basically represents CPU usage for Django (more accurately - caused by Django). The model validates [1] and the tables/Models are shown in the front page of the Admins interface. Most of the Models are represented well and work as one would expect. However, there is one table/Model that doesn’t work as expected. It works OK when you go to add an additional record [2], but when going to view items before changing them [3], it causes the CPU to spike and three minutes later I have my results. Before I edited the table/Model to remove one of the ForeignKeys, I would get a PostgreSQL error because Django passed it a SELECT statement with *over* 1664 entries [4]! Well, it seems that by editing the table I was able to keep the entries under the 1664 limit and PostgreSQL would process the SELECT, but it takes forever to finish it.
I guess that technically, the CPU is being eaten up by PostgreSQL, but that’s not really the point. The point is that Django really doesn’t have any business sending it a SELECT statement with some 2000+ entries in it (especially for such a simple, simple request.) OK, so maybe it has a bug, limitation or whatever, I’m cool with that - it happens. The frustrating part is that I can’t confirm that this is a known problem or find the answer. The answer I’m looking for should be simple, but I have not been able to find it. IRC and #django was a bust and the mailing list yields nothing yet.
I was pretty enthusiastic about Django, but maybe it’s to soon. It’s a cool project and I wish them luck. I’m just wondering if all the time spent so far porting one of my apps to the Django framework was time wasted or not.
1) -
./manage.py runserver
Validating models…
0 errors found.
2) http://localhost:8000/admin/App/Model/add/
3) http://localhost:8000/admin/App/Model/
4) -
Request URL: http://localhost:8000/admin/core/stagedorder/
Exception Type: ProgrammingError
Exception Value: ERROR: target lists can have at most 1664 entries SELECT
Oct 10
I don’t have a ton to say right now (really, I don’t have a lot of *time* to say it), but first impressions of Python and Django are very positive. The admin interface is a great little tool to get things going FAST. I’m really, really impressed. The CREATE TABLES are clean, the SQL is clean and the DB API is clean (different, but I can learn to like it); I’m really enjoying it. How often can you say that?
Extra points for:
- PostgreSQL as preferred database.
- Template system that strikes a good balance.
- Powerful and clean URL handling.
- Modular design.
Needs work:
- Namespace support for PostgreSQL (app_table vs. app.table).
- Keeping data model and DB schema synced (this might be in a better state then I know; I need to read up on it).
Recent Comments