Comparing BoundField values in templates

2009-01-19 Thread ekellner
Hi, I am having trouble working with a BoundField value in a template. What I have is a IntergerField that is represented by a set of Radio Buttons in html. I want to lay out these buttons myself, and plus there's javascript involved. I don't believe there's a way to do this while letting the fi

Re: Absolute URL vs Relative URL, or ~ ?

2008-09-16 Thread ekellner
On Tue, Sep 16, 2008 at 10:02 AM, est <[EMAIL PROTECTED]> wrote: > > Today, my boss came to me and asked: "Please move our django site from > http://xxx.com/ to http://xxx.com/v2/"; > > It's killing me. Just image how huge mount of HTML source code to > modify. > I STRONGLY suggest django implem

Re: utf-8 text in models with coding: keyword

2008-09-11 Thread ekellner
2008/9/11 Jarek Zgoda <[EMAIL PROTECTED]> > > Coding cookie has nothing to do with bytestring literals decoding, > it's only for unicode literals. If you try to coerce bytestring with > unicode, decoding will be done using default system encoding, if > encoding is not specified explicitly. > Inde

Re: DateTimeFields not showing up in Admin page

2008-09-10 Thread ekellner
On Wed, Sep 10, 2008 at 5:04 PM, Guillermo <[EMAIL PROTECTED]>wrote: > Hi Steve, > > Actually I only wanted to have them displayed in the Admin interface > somehow but in a way that the user can't modify them. A sort of meta > information to the entry. > > I'm only getting my feet wet with Django,

Re: ProgrammingError at /admin/, date/time field value out of range

2008-09-05 Thread ekellner
On Fri, Sep 5, 2008 at 1:41 AM, Benedict Verheyen < [EMAIL PROTECTED]> wrote: > > Because the datestyle in the sql statement is passes as Ymd, i tried to > set the datestyle in the postgres.conf file als datestyle = 'iso, ymd' and datestyle = 'sql, us' but they all resulted in the same error.

Re: ProgrammingError at /admin/, date/time field value out of range

2008-09-04 Thread ekellner
> > > When i use wrong dates in a query and execute that directly on the > database, > then i get the same error message. > Judging from the error message, it seems as if the date is in a different > format than expected by the database. > The expected date format is a per-connection level setting

Re: Determine if model item is subclassed

2008-09-03 Thread ekellner
On Tue, Sep 2, 2008 at 1:27 PM, gauteh <[EMAIL PROTECTED]> wrote: is there a different way to accomplish what im trying to do? or do i > need to check in my view function for which subclass that exists: > try: >n = items.newsitem > except DoesNotExist: >pass > try: >l = items.linkitem

Re: Missing traceback for 500 errors

2008-07-01 Thread ekellner
Thanks, indeed that is all I was missing. I somehow managed to miss the setting documentation and instead found some information on the 500 view. On Tue, Jul 1, 2008 at 3:11 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Tue, Jul 1, 2008 at 8:15 AM, Elizabeth Kellner <[EMAIL PROTECTED]> > wrot

Re: Model inheritance and primary keys

2008-06-03 Thread ekellner
On Tue, Jun 3, 2008 at 2:49 PM, Etienne Robillard <[EMAIL PROTECTED]> wrote: > I agree with you, and think this should be better expressed. Perhaps without > words which refers to abstract C++ concepts like pointers, and using a > vocabulary > more adapted to Python. At least this would be more

Model inheritance and primary keys

2008-06-03 Thread ekellner
As I was looking at model inheritance with admin recently, I came across this issue: http://code.djangoproject.com/ticket/6755 I'm thinking now that the underlying issue that I'm seeing, and what the patch in 6755 is fixing, doesn't actually have anything to do with newforms at all. I think it h

Re: model inheritance and admin (qs-rf & nf-a)

2008-06-02 Thread ekellner
> Have you done any experimentation to see how far off working it is in the > newforms-admin branch...and whether it's any easier to fix there? I believe > the plan is to implement this support exclusively in newforms-admin and not > worry about getting it to work on the old admin. (Someone chan