Re: Serving xhtml with correct mime-type

2006-02-04 Thread James Bennett
On 2/4/06, Ashocka <[EMAIL PROTECTED]> wrote: > What I need to know is, will the Django Framework address the problem > of "serving xhtml with correct mime-type"? This seems to me to be > something that belongs within the framework and something that v1.x > should address. Sube Kirkeby wrote a m

Re: Serving xhtml with correct mime-type

2006-02-04 Thread Ashocka
Thanks for that. Just as long as it's there (Core or middleware) and it works:-). Is there a place on the main Django site that lists these middleware modules? I can't even find a search box on the Django site. Is this deliberate or an oversight? Had to use Google to find it (http://www.googl

Re: scale of auth system

2006-02-04 Thread Luke Skibinski Holt
Depends on your requirements and how much you can trust your users. If you're talking thousands of users, each user will be stored as a record in the database, and each of the databases supported by Django can easily support millions of records (performance dependent on hardware/design of course).

Magic removal

2006-02-04 Thread DjangoIstheBest
Hey folks, I have been using Django for some time already and I really like it. The starts were rather hard( very little docs) but I endured and made my first Django application with plans to make more projects and also update them in future if needed. So far so good but when I checked the magic

Re: Magic removal

2006-02-04 Thread Luke Plant
On Saturday 04 February 2006 11:28, DjangoIstheBest wrote: > When I download a new version will I have to modify my current > application(s)?Will I have to install several Django versions on my > PC to use the correct one with an appropriate application(s) in > which the application(s) was/were

Re: Tree View

2006-02-04 Thread akaihola
See these cookbook recipes for ideas: http://code.djangoproject.com/wiki/CookBookCategoryDataModel http://code.djangoproject.com/wiki/ModifiedPreorderTreeTraversal I use a custon template tag to make a tree-like navigation menu by turning the tree into a straight list with depth information on ea

Memory leaks in DB API

2006-02-04 Thread [EMAIL PROTECTED]
Hi all I am wondering if other people have noticed an apparent bug in Django when using the DB API to insert a large number (~1 million) of records (each record ~2k) into MySQL (WinXP/Python 2.3). Here is a simplified/clean version of the code I am running: from django.models.appname import foos

Re: Tree View

2006-02-04 Thread Max Battcher
akaihola wrote: See these cookbook recipes for ideas: http://code.djangoproject.com/wiki/CookBookCategoryDataModel I was using this already. http://code.djangoproject.com/wiki/ModifiedPreorderTreeTraversal Thanks. That's a start. I was hoping for something a bit wiser and more generic,

_manipulator_validate_FOO() , i need help.

2006-02-04 Thread coulix
Where do we put the function ? I have a model for recipe, i want to validate the image field only, checking the file size as explain in one of the post here. do i have to write a whole manipulator with all the fields and a specific validator for image like in the documentation on "form and man

Re: Tree View

2006-02-04 Thread Julio Nobrega
's are possible, it's in fact what I use on my (to-be) site: {% for node in node_tree %} {{ node.body }} {% endfor %} Screenshot of (a more styleshed) output here: http://static.flickr.com/42/95381035_a51eb622dc_o.png On 2/4/06, Max Battcher <[EMAIL PROTECTED]> wr

Error defining foreygn key in model

2006-02-04 Thread alexandremasbr
Im tryng to use the Django user/group tables in my aplication. So, In a project, a manager have to be a django user. But I tried in many ways and keep getting errors, like NameError: name 'User' is not defined After much time, if finally achieve it to work: ---

Re: Serving xhtml with correct mime-type

2006-02-04 Thread Adrian Holovaty
On 2/4/06, Ashocka <[EMAIL PROTECTED]> wrote: > Is there a place on the main Django site that lists these middleware > modules? The documentation page (http://www.djangoproject.com/documentation/ ) has a link to the middleware docs: http://www.djangoproject.com/documentation/middleware/ The docu

Re: Memory leaks in DB API

2006-02-04 Thread Dody Suria Wijaya
Your setting might be using DEBUG = True, which save all SQL queries and its start/stop time for debugging when something goes wrong. Try turning it to False. [EMAIL PROTECTED] wrote: Hi all I am wondering if other people have noticed an apparent bug in Django when using the DB API to inser