Re: i18n missing feature ... continued (proposed solution for the upcoming sprint)

2007-11-18 Thread alain D.
Hi, I agree that my proposed syntax was a little bit horrible ... but I really wonder if it can be different. Your syntax is interesting but : - I'm not sure it's really "djangoic" in the sense that it introduce a new way to declare markup '[[' and ']]' - the other problem I see is that it

Re: Using filters with {% trans %} tag

2007-11-18 Thread Dmitri Fedortchenko
I found something. FilterExpression seems to be a bad boy. Check out these two pieces of code (in the __init__ function of FilterExpression): if i18n_constant: var = "'%s'" % _(i18n_constant) elif constant: var = "'%s'" % co

Getting Images to display in Development Environment

2007-11-18 Thread Vincent
I am new to Django and Python and trying to learn by going thru an open source application called Vection. I get everything up and running except for the static images. I followed the article at http://www.djangoproject.com/documentation/static_files/ put I still can't get the images to serve. Cou

Re: Multiple Database Status Update

2007-11-18 Thread James Bennett
On 11/17/07, ElegSub <[EMAIL PROTECTED]> wrote: > We will disagree about the accuracy of that statement but your > response is by far the most clear and succinct response to this > question yet. Thank you. The problem is that people pop up every couple weeks and ask precisely the sort of thing yo

Re: i18n missing feature ... continued (proposed solution for the upcoming sprint)

2007-11-18 Thread Jacob Kaplan-Moss
On 11/17/07, Mark Green <[EMAIL PROTECTED]> wrote: > {% blocktrans with value|filter as number %} > This will have [[]]one item[[]] inside [...] I stopped reading here. Anything that involves adding more syntax to the template language gets a reflexive -1 from me. Our goal is to keep the syntax a

Re: i18n missing feature ... continued (proposed solution for the upcoming sprint)

2007-11-18 Thread Mark Green
On Sun, 2007-11-18 at 11:23 -0600, Jacob Kaplan-Moss wrote: > On 11/17/07, Mark Green <[EMAIL PROTECTED]> wrote: > > {% blocktrans with value|filter as number %} > > This will have [[]]one item[[]] inside > [...] > > I stopped reading here. Anything that involves adding more syntax to > the temp

Re: i18n missing feature ... continued (proposed solution for the upcoming sprint)

2007-11-18 Thread Mark Green
On Sun, 2007-11-18 at 02:01 -0800, alain D. wrote: > Hi, > > I agree that my proposed syntax was a little bit horrible ... but I > really wonder if it can be different. > > Your syntax is interesting but : > - I'm not sure it's really "djangoic" in the sense that it introduce > a new way t

Re: i18n missing feature ... continued (proposed solution for the upcoming sprint)

2007-11-18 Thread Malcolm Tredinnick
On Mon, 2007-11-19 at 00:22 +0100, Mark Green wrote: > > On Sun, 2007-11-18 at 02:01 -0800, alain D. wrote: [...] > > Your syntax is interesting but : > > - I'm not sure it's really "djangoic" in the sense that it introduce > > a new way to declare markup '[[' and ']]' > > Well, as said, the

Re: i18n missing feature ... continued (proposed solution for the upcoming sprint)

2007-11-18 Thread Mark Green
On Mon, 2007-11-19 at 11:38 +1100, Malcolm Tredinnick wrote: > > On Mon, 2007-11-19 at 00:22 +0100, Mark Green wrote: > > > > On Sun, 2007-11-18 at 02:01 -0800, alain D. wrote: > [...] > > > Your syntax is interesting but : > > > - I'm not sure it's really "djangoic" in the sense that it intr

Problem in Django's unit tests?

2007-11-18 Thread Todd O'Bryan
I've been playing with the Django tests a bit and noticed something odd. Here's what the docs say: Yes, the unit tests need a settings module, but only for database connection info, with the DATABASE_ENGINE setting. You will also need a ROOT_URLCONF setting (its value is ignored; it just needs to

Re: Problem in Django's unit tests?

2007-11-18 Thread Malcolm Tredinnick
On Sun, 2007-11-18 at 22:54 -0500, Todd O'Bryan wrote: > I've been playing with the Django tests a bit and noticed something > odd. Here's what the docs say: > > Yes, the unit tests need a settings module, but only for database > connection info, with the DATABASE_ENGINE setting. You will also n

Re: Python history won't work in Django shell (maybe found bug?)

2007-11-18 Thread Todd O'Bryan
Think I figured out the problem. Ubuntu doesn't look at /etc/profile--that's why I wasn't getting PYTHONSTARTUP, even when I didn't use --plain. Moving my export PYTHONSTARTUP line to /etc/bash.bashrc worked. So the issue now is that shell --plain doesn't use PYTHONSTARTUP, which both Deryck and

Re: Problem in Django's unit tests?

2007-11-18 Thread Todd O'Bryan
Done. Except that I should have used a pre-formatted block for the test output, so it looks really awful. Sorry about that. On Nov 18, 2007 11:18 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > On Sun, 2007-11-18 at 22:54 -0500, Todd O'Bryan wrote: > > I've been playing with the Django

Re: django-admin.py can't access user-supplied commands, even if --settings option is provided

2007-11-18 Thread Todd O'Bryan
OK. I think the problem is solved. I missed a possible error that could have been (and was) raised. The new patch also separates logic for determining if there are any INSTALLED_APPS and if there's a project directory, since it's conceivable (as in the tests) that one could be set, but not the oth