Re: good django twitter login tutorial

2011-09-26 Thread Gianluca Sforna
nk django-oauth is useful to create oauth providers; for consumers (like the one he's trying to build) he needs a client. For that, I found python-oauth2 at https://github.com/simplegeo/python-oauth2; the readme there has even an example of authenticating a django app with twitter. -- Gianluc

Using Q objects vs explicit filters

2011-04-13 Thread Gianluca Sforna
y the second syntax yields the desired result set. Are the above forms supposed to produce comparable queryset? Thanks in advance G. -- Gianluca Sforna http://morefedora.blogspot.com http://identi.ca/giallu - http://twitter.com/giallu -- You received this message because you are subscribed t

Re: Using Q objects vs explicit filters

2011-04-14 Thread Gianluca Sforna
D U1."parent_id" IS NOT NULL))) In [18]: f2 = Parent.objects.exclude(q) In [19]: print f2.query SELECT "molserv_parent"."id", "molserv_parent"."name" FROM "molserv_parent" INNER JOIN "molserv_child" ON ("molserv_parent"

Re: Using Q objects vs explicit filters

2011-04-14 Thread Gianluca Sforna
" WHERE NOT ("molserv_parent"."id" IN (SELECT U1."parent_id" FROM "molserv_child" U1 WHERE (U1."gender" = f AND U1."parent_id" IS NOT NULL))) -- Gianluca Sforna http://morefedora.blogspot.com http://identi.ca/giallu - http://twitte

Re: How to setup the django progject to apache2

2011-05-01 Thread Gianluca Sforna
an a django question, however I think you're missing to let the server actually listen on port 9000. Try adding a line like: Listen 9000 outside your virtualhost directive. See http://httpd.apache.org/docs/2.2/bind.html#virtualhost for details -- Gianluca Sforna http://morefedora.blogspo

Re: Weird join conditions

2011-07-02 Thread Gianluca Sforna
42) object_list = ObjectModel.filter(q1 & q2) more info at: https://docs.djangoproject.com/en/dev/topics/db/queries/#filters-can-reference-fields-on-the-model https://docs.djangoproject.com/en/dev/topics/db/queries/#complex-lookups-with-q-objects -- Gianluca Sforna http://morefedora.blogspot.com htt