What's available in a view

2007-03-08 Thread fyl
This is somewhere between an observation and a question. I am writing a view that needs to know "some stuff", in particular HTTP_ACCEPT_LANGUAGE. As I read the developing book and look at the on- line documentation, it is not clear what is available and, probably more important, what is good pract

Re: What's available in a view

2007-03-09 Thread fyl
On Mar 8, 8:39 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 3/8/07, fyl <[EMAIL PROTECTED]> wrote: > > > This is somewhere between an observation and a question. I am writing > > a view that needs to know "some stuff", in particular >

Admin dies when foreign key added

2006-05-30 Thread fyl
I am getting an error in admin when trying to do an add. The error is mentioned in bugs but not related to the condition I have. It is 'bool' object has no attribute 'get' in get_manipulator_fields, line 112. Here are parts of my model: class Agent(models.Model): uid = models.IntegerField

Learning Django

2006-08-15 Thread fyl
I tripped on Django while looking for the best tool to re-implement a project. I'm not the one writing the code and for a number of reasons, Rails was picked for that project. But, in the process, I realized where Django was the clear winner. On our project list now is re-implementing some sites t

Re: Learning Django

2006-08-15 Thread fyl
Adrian Holovaty wrote: ... If you have any > questions, I'd encourage you to ask them; people on this mailing list > are super-nice and helpful! > > Adrian > > -- > Adrian Holovaty > holovaty.com | djangoproject.com I have to agree completely here. I see so much knowledge being distributed. I am

Override value on save in admin

2006-08-17 Thread fyl
Just entering data in the admin interface. I want to stuck the current user in a field at save time if nothing has been specified. I understand needing to define a new save method and calling the "real one" in the model. But, do I have access to who someone is currently logged in as? --~--~-