django way to enter data in a table?

2005-10-05 Thread Kenneth Gonsalves
hi, i have two tables - golfers and matches. After the match is over, i need an admin screen that will give the list of golfers for a given match and 1 or more boxes against each name where their score can be entered/edited. Does django admin interface have a quickie way of doing this? -- reg

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-05 Thread Adrian Holovaty
On 10/3/05, Emanuele <[EMAIL PROTECTED]> wrote: > to avoid big drop-down lists in admin interface I'm using > "raw_id_admin=True" inside ForeignKey(), so I can enter > object IDs manually. But what happens if my related object has > a _non-numeric_ custom primary key? I've fixed this bug in revis

Re: Template guide -> administration feature.

2005-10-05 Thread JKR
Cool, I got it work like a charm now. Thanks Kieran,

Re: Performance and scalability

2005-10-05 Thread Jimmie Houchin
Jacob Kaplan-Moss wrote: On Oct 3, 2005, at 11:14 PM, Jimmie Houchin wrote: Can you tell us what kind of hardware is supporting that 100k? Our main production platform is three servers: a database server, a web server, and a media server. They're all Dual Xeons with 2G of RAM. We've go

Re: Oct 3rd: Django Presentation (CLEPY)

2005-10-05 Thread Ian Maurer
The presentation and the zipfile containing my project can be found at my site: http://itmaurer.com/blog/?p=1 Thanks to all who attended! Ian On 9/25/05, Ian Maurer <[EMAIL PROTECTED]> wrote: > I am going to be doing a presentation on Django at the Cleveland Area > Python Interest Group (CLEPY

Re: Performance and scalability

2005-10-05 Thread Jacob Kaplan-Moss
On Oct 3, 2005, at 11:14 PM, Jimmie Houchin wrote: Can you tell us what kind of hardware is supporting that 100k? Our main production platform is three servers: a database server, a web server, and a media server. They're all Dual Xeons with 2G of RAM. We've got a secondary server setu

Re: Site-wide User Authentication

2005-10-05 Thread Andreas
Maniac wrote: > You could subclass django.core.extensions.DjangoContext and > prefill it with your everpresent variables in __init__(). I ended up writing a one-line custom middleware that makes the user-instance available to my views as request.user. In order to have the user-data not only in th

Re: Site-wide User Authentication

2005-10-05 Thread Maniac
Andreas wrote: mentioned that I don't, I'm using a custom model. Is there a way to make a custom model available in all views and templates without explicitly passing it as a parameter every time? You could subclass django.core.extensions.DjangoContext and prefill it with your everpresent v

Re: Site-wide User Authentication

2005-10-05 Thread Andreas
Jacob Kaplan-Moss wrote: > If you use django.core.extensions.DjangoContext instead of > django.core.template.Context the {{ user }} variable will > automatically be available in your templates. If > {{ user.is_anonymous }} is True then the user is *not* > logged in; otherwise the user info is ava

Re: Model subclass accessing parent instances?

2005-10-05 Thread Carlo C8E Miron
2005/10/5, Andy Shaw <[EMAIL PROTECTED]>: > > Hi all; > > I'm experimenting with subclassing models at the moment. Specifically, > I'm trying to add an optional element to the user class. The following > code works fine: > > from django.core import meta > from django.models.auth import User > > cl