Re: What software is used to draw flow chart in the django book?

2008-03-25 Thread speleolinux
Hi all On Mar 21, 12:47 am, "John.H" <[EMAIL PROTECTED]> wrote: > Can anyone tell me? > How can I draw figures like > :http://new-media.djangobook.com/content/en/1.0/chapter03/get_response... Have a look at GraphViz: http://www.graphviz.org/ It's really powerfull and cool. There are alsp Pytho

Re: Custom form where fields in Form do not match Model

2008-03-09 Thread speleolinux
On Mar 9, 1:31 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > If you are going to populate a Decision from self.cleaned_data, then you > need to remove choice1 and choice2, etc, from the cleaned_data dictionary > that you return from your clean() function. Removing them from base_fields > I do

Re: Custom form where fields in Form do not match Model

2008-03-08 Thread speleolinux
Hi On Mar 7, 11:26 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > It is fairly important when reporting an error like this that you give > enough information to indicate where the error is coming from. ... Sorry. See at bottom. > Guessing a lot here (it looks like there's only one place "ch

Re: datetime.date.today()

2008-03-06 Thread speleolinux
Hi Oops, I said > Then in the place where you need the 'user' use this: > self.who = str(threadlocals.get_current_user()) In your case it will be self.author Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: How to remove the dependencies on the project directory from the python code.

2007-01-23 Thread speleolinux
Hi > Go to Google groups and search this list for a thread last week > entitled "Project organization and decoupling". Thanks, that looks perfect to read and should enlighten me more. Much appreciated. Mike --~--~-~--~~~---~--~~ You received this message becaus

How to remove the dependencies on the project directory from the python code.

2007-01-23 Thread speleolinux
Hi all Having got the tutorial working I have been looking at the docs covering what's meant by a site, projects, apps etc. It looks like there is a lot to read there to really understand the framework. Anyhow what I'd like to do is to understand how to remove the dependencies on the project dire

Re: Tute Part 4: vote() got an unexpected keyword argument 'poll_id'

2007-01-23 Thread speleolinux
Hi All is now working. I also had to change poll to object in another section of vote(). # Redisplay the poll voting form. return render_to_response('polls/poll_detail.html', {'object': p, 'error_message': "You didn't select a choice."}) Mike --~--~-~--~~---

Re: Tute Part 4: vote() got an unexpected keyword argument 'poll_id'

2007-01-23 Thread speleolinux
Hi On Jan 23, 9:28 pm, "SmileyChris" <[EMAIL PROTECTED]> wrote: > The error message itself actually explains the problem quite well: > vote() [your view] got an unexpected keyword argument 'poll_id' [so > your view was passed an argument it wasn't expecting...] > Vote is expecting to receive

Tute Part 4: vote() got an unexpected keyword argument 'poll_id'

2007-01-22 Thread speleolinux
Hi all I'm having problems in getting Part 4 of the tutorial where one uses generic views to work. The Polls app works fine until then. I have made the changes in part 4 and the polls/ URL is fine and when I go to say polls/1/ I get my list of polls with the Vote button but when its clicked I ge