Re: Proposal: models.py by default instead of "models" directory

2005-11-19 Thread Tim Keating
Robert Wittams wrote: > Are you using the app template loader? templates go in /templates . > Seems eminently sensible to me. > The project wide stuff is useful for overriding app provided templates. No, I'm not. Clearly I need to do some reading :-)

Re: I18n of core/formfields.py

2005-11-19 Thread Maniac
hugo wrote: They are done in new_admin. No need to do the work twice :-) - As soon as new_admin hits trunk, the admin is much more complete with regard to translation. Cool! BTW: If you are interested in translation work, join django-I18N, as that's the place where translation discussions

Re: I18n of core/formfields.py

2005-11-19 Thread hugo
>There are a whole lot of strings in core/formfields.py that aren't >translated with _(). Is there some reason why it's not done or it >should be >done? They are done in new_admin. No need to do the work twice :-) - As soon as new_admin hits trunk, the admin is much more complete with regard to

I18n of core/formfields.py

2005-11-19 Thread Maniac
There are a whole lot of strings in core/formfields.py that aren't translated with _(). Is there some reason why it's not done or it should be done? I probably will make it anyway for my project and I wonder if a patch with this would be desired?

Committing delete with execute()

2005-11-19 Thread David Pratt
Hi. I have been using the django db api for a project using SQLite-3.2.7 with pysqlite-2.0.5. The form of my more complicated sql statements have been of the form: from django.core.db import db query = "SELECT ... the rest of my query ..." cursor = db.cursor() cursor.execute(query) records

Re: Validator app+middleware

2005-11-19 Thread Luke Plant
On Sat, 19 Nov 2005 14:46:51 +0100 Sune Kirkeby wrote: > > On 11/19/05, Luke Plant <[EMAIL PROTECTED]> wrote: > > , but perhaps > > it could be clearer in the docs that if you are creating a generic > > app you should put it outside your project folder, and perhaps some > > guidance for naming s

Re: Validator app+middleware

2005-11-19 Thread Sune Kirkeby
On 11/19/05, Luke Plant <[EMAIL PROTECTED]> wrote: > , but perhaps > it could be clearer in the docs that if you are creating a generic app > you should put it outside your project folder, and perhaps some guidance > for naming so clashes can be avoided. I'll create a Wiki page about > this if no

Re: Validator app+middleware

2005-11-19 Thread Luke Plant
Cross-post from django-users: On Fri, 18 Nov 2005 22:13:56 -0600 Adrian Holovaty wrote: > On 11/18/05, Luke Plant <[EMAIL PROTECTED]> wrote: > > This evening I wrote an app and middleware to help me with > > development of my Django project. It validates all the HTML > > generated by your Djan

Re: reworked cache management

2005-11-19 Thread Sune Kirkeby
On 11/5/05, Luke Plant <[EMAIL PROTECTED]> wrote: > 3) implement the stack of middleware as you described it, which would > solve this problem, but I don't know if it might introduce some others. 4) Change middleware to work like WSGI middleware-applications. A middleware would be initialized wit

Re: Template locations

2005-11-19 Thread Sune Kirkeby
On 11/19/05, Tim Keating <[EMAIL PROTECTED]> wrote: > Then maybe we can start talking about how wrong it is where templates > live right now . . . Care to explain this remark? There are good technical reasons why templates live where they do. /s