Re: is it possible to have more than one search result in a view

2009-04-16 Thread commander_coder
Perhaps I don't understand the question, but why cannot your context include a number of different pieces of data? return render_to_response('country/search_detail.html', {'search_results': search_results, 'firm_search':firm_search, 'client_searc

Re: Need help first user of django..

2009-04-16 Thread commander_coder
Those are both good, and the book _Practical Django Projects_ by Bennett is another good choice. Jim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

sanitizing the regex in Entry.objects.get(title__iregex=regex)

2009-04-15 Thread commander_coder
I have a question about escaping a db query that uses iregex. I wonder if there isn't just a function that I need to use that I don't know how to find. I have a text box where users can enter multiple words and I will search the database for a regex made from those words (the underlying databse

Question about field/widget relationship

2008-12-12 Thread commander_coder
How does a field pass attributes to a widget? I have approximately this class fooForm(forms.Form): x_choice=myForms.xField(widget=myWidgets.xWidget) where myWidgets.xWidget is a subclass of RadioSelect so it has a required argument like "choices=[('a','1'), ('b','a')]" (this is generated dyn

Re: encoding and escaping of form values

2008-07-12 Thread commander_coder
Thank you *very* much. > What happens when you try it? Your computer won't catch on fire when you > make a mistake, so experimentation is a good way to learn. :-) I left out a lot of fumblings, including these ones. I find that when I'm beginning trying to understand a system with lots of parts

Re: encoding and escaping of form values

2008-07-12 Thread commander_coder
Thank you *very* much. > What happens when you try it? Your computer won't catch on fire when you > make a mistake, so experimentation is a good way to learn. :-) I left out a lot of fumblings, including these ones. I find that when I'm beginning trying to understand a system with lots of parts

encoding and escaping of form values

2008-07-12 Thread commander_coder
I'm trying to write some of my first custom Django widgets, fields, and forms. I'm having some trouble making out what the source code does. I have radio buttons that end in html something like this. string Here "key" and "string" come from the db and could be non-ascii, or any string at all.