Re: Newbie - How do I perform custom sql queries?

2006-09-18 Thread Jakub Krajniak
bmeredyk wrote: > I'm just starting out with django and need some help with how to > perform custom queries. The query I want to do is basically this: > > SELECT num_volunteers, num_boxes, (num_boxes * 216) as meals, > (num_boxes/num_volunteers) as box_per_person FROM shifts WHERE site = > %s AND

Re: Flatpages and DEBUG=False

2006-09-16 Thread Jakub Krajniak
Jani wrote: > I have a weird problem with flatpages. Everything works fine if I have > DEBUG=True in the settings.py. However, when I change DEBUG=False > flatpages gives error: (...) > File > "/opt/local/lib/python2.4/site-packages/django/template/loader_tags.py", > line 58, in get_parent >

Re: Example of a "select" form?

2006-09-16 Thread Jakub Krajniak
[EMAIL PROTECTED] wrote: > I'm just getting started with using Django to build a web app. > > Can anyone point me to an example of how to pull back a few rows of > data from the database based on which checkboxes a user has selected? > > I've read through the "Manipulator" sections of the documen