create referenced object at the same time in the form

2009-01-26 Thread ltcstyle
I am going to allow user to create a Book object as well as its Author (if the author is not existed yet). How can I do it? AFAIK, inlineformset_factory seems a good start point. But as you see, the book and author object are both unknown in the form modeling stage. Any ideas? Thanks --~--~

Re: How do i display a count of items related to a model?

2009-01-22 Thread ltcstyle
Are you sure it is not just a property of that question class? Storing a count property for that answers, and increase it every time got new response? It would be faster than go through the entire db for each question. I am just guessing. On Thu, Jan 22, 2009 at 1:37 PM, Gath wrote: > > In Dja

ifequal with floatformat:"0" doesn't work

2009-01-20 Thread ltcstyle
is this a bug or what? {{float_number|floatformat:"0"}} give me correct number 1 but {% ifequal float_number|floatformat:"0" 1 %} never match Any ideas? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: CSS is not updated?

2009-01-12 Thread ltcstyle
on, Jan 12, 2009 at 10:08 AM, ltcstyle wrote: > > > What does CTRL+F5 do for my browser? sorry I developed in Mac, hence > > Safari. > > Does refreshing help? Or clearing the browser cache? > > Barring all of that -- are you actually editing the correct CSS file? > Th

Re: CSS is not updated?

2009-01-12 Thread ltcstyle
works fine. On Jan 12, 2:49 pm, Szymon wrote: > On 12 Sty, 12:53, ltcstyle wrote: > > > But during my development, if I have updated my css file, the django- > > development web server is not responded properly. The old style is > > used. Then I have to use apache se

CSS is not updated?

2009-01-12 Thread ltcstyle
Hi, I am new in Django, I find it pretty easy to learn and use. But during my development, if I have updated my css file, the django- development web server is not responded properly. The old style is used. Then I have to use apache server to check if the CSS style is right for me. Any thoughts?