Filter on multiple fields and/or multiple values...

2008-10-29 Thread megrez80
Hello, I want to do something like the following: my_query_set = my_table.objects.filter(field1 = some_val and field2 = another_val) or my_query_set = my_model.objects.filter(field1 = some_val or field1 = another_val) I couldn't find anything in the docs that describes ho

Re: database API from external tools?

2008-10-31 Thread megrez80
I'm trying to accomplish the same thing: use django standalone. After getting DJANGO_SETTINGS_MODULE set correctly so that it finds my settings.py, I get: File "C:\Python25\Lib\site-packages\django\db\models\base.py", line 51, in __new__ kwargs = {"app_label": model_module.__name__.split('

Integrating into PHP-based site...

2008-09-28 Thread megrez80
Hello, I'm currently prototyping a web application using Django which must be integrated into an existing PHP-based site. Can anyone comment on, or provider a pointer to documentation for, the issues involved. In particularly, how to go about inheriting the existing look-and- feel. Thanks. K

Re: Integrating into PHP-based site...

2008-09-29 Thread megrez80
hat into a template, so as to avoid having duplicated HTML? Ken On Sep 28, 10:27 pm, Jeff Anderson <[EMAIL PROTECTED]> wrote: > megrez80 wrote: > > Hello, > >     I'm currently prototyping a web application using Django which > > must be integrated into an e

Re: Integrating into PHP-based site...

2008-09-29 Thread megrez80
t;[EMAIL PROTECTED]> wrote: > On Sep 29, 12:06 pm, megrez80 <[EMAIL PROTECTED]> wrote: > > > Regarding "repurposing" the PHP-generated HTML, do you mean > > statically, eg. copying the page source into a template? > > > If not, how can this be accomplish

Rendering just child template...

2008-10-02 Thread megrez80
Is there a way to render just a child template (without it's parent(s)) and pass the results back in response to an Ajax.Updater request? I want to do this to dynamically update a container in an already-rendered page. Ken --~--~-~--~~~---~--~~ You received t

Re: Rendering just child template...

2008-10-06 Thread megrez80
Yes this helps, and it works, sort of. The resulting updated container is the entire page, minus the actual data. So I'm wondering, should I use render_to_response (really HttpResponse) to return the rendered HTML, or should I use something else in response to the Ajax.Updater request? Thanks ag

Re: How to send emails when after an event happened?

2008-10-20 Thread megrez80
Start here: http://www.python.org/doc/2.5.2/lib/module-smtplib.html . Ken On Oct 19, 2:04 am, Net_Boy <[EMAIL PROTECTED]> wrote: > Hi, > >    I am doing a new project and  (doing a function that checks  for a > specific event, if it happened then the system should send email to > the user?