Help! Need to do full-text query on multiple tables

2010-01-13 Thread Info Cascade
Hi, Need some help,here! I posted this a while ago and didn't get any response that was helpful. I still need to resolve it, and someone who understands the problem surely can point me in the right direction. Do I need a custom manager for a sql UNION query, and if so, what is the best

Django Trainer/Instructors

2010-01-13 Thread felicity at cubes
Hi everyone, We are looking for Bay Area based trainers/instructors in Django to instruct in one day and three day bootcamps. Everything from introductory level to advanced. We already have interested attendees and space, and are looking for a couple of great instructors to partner with. If

Re: again a group by problem...

2010-01-13 Thread Russell Keith-Magee
On Thu, Jan 14, 2010 at 7:56 AM, Bw. wrote: > Hi guys, > > I'm trying to realize a simple sql query in django for hours and I > don't get it. > > Description: > We have 'salesman' and 'disposals'. > 1 salesman has N disposals. > Now I need the average discount every salesman has

again a group by problem...

2010-01-13 Thread Bw.
Hi guys, I'm trying to realize a simple sql query in django for hours and I don't get it. Description: We have 'salesman' and 'disposals'. 1 salesman has N disposals. Now I need the average discount every salesman has given. In mysql this query gives me the correct recordset: SELECT

Render Many to Many relation for listing

2010-01-13 Thread GoSantoni
Hi group, I have the following problem: * a relation in the model between posts and images * class Post(models.Model): imagepost = models.ManyToManyField(Image, blank=True, verbose_name=_('media')) * usage of media in view * def post(request, username, year, month,

Re: Chaining queries?

2010-01-13 Thread Zeynel
I answered my own question: http://stackoverflow.com/questions/2058573/how-to-refine-an-initial-query-in-django Any improvements and suggestions are welcome. On Jan 13, 1:36 pm, Zeynel wrote: > I am using this query in the views function search() to find a lawyer > in the

manage.py takes the wrong model for sql

2010-01-13 Thread Benjamin W.
Hi, I have a strange problem: I've just set up a development version of my app. (the app is hosted on webfaction). Now I got 2 versions off my app: myapp myapp_dev Both apps (should be) completely seperated, each has his own djago instance and a own apache. The problem: When I go to myapp_dev

Djangoski Early Bird - time running out

2010-01-13 Thread Andy McKay
Time is running out for the DjangoSki Early Bird, sign up soon: http://www.clearwind.ca/djangoski/register.html -- Andy McKay, @clearwind Whistler conference: http://clearwind.ca/djangoski/ -- You received this message because you are subscribed to the Google Groups "Django users" group.

PgEast CFP (second call) (looking for Django content)

2010-01-13 Thread Joshua D. Drake
January 13, 2010 PostgreSQL Conference East, The PostgreSQL Conference for Decision Makers, End Users and Developers, is being held at the Radisson Plaza, Warwick Hotel in Philadelphia on March 25th through 28th. This is the second call for papers for this conference. You can review the skeletal

Chaining queries?

2010-01-13 Thread Zeynel
I am using this query in the views function search() to find a lawyer in the database: lawyers = Lawyer.objects.filter(last__icontains=q) q is the query entered by user here: http://swimswith.com/search-form/ For instance, searching for "lelland" returns her info:

Re: Referencing the view function in urlpatterns

2010-01-13 Thread Karen Tracey
On Wed, Jan 13, 2010 at 12:53 PM, Zeynel wrote: > Thanks. This may be it. I'll try it later. But does that also explain > why in the dev server the reference is not a string but in the > production server it is a string? > > No, from what's been posted it isn't clear why what

Re: Referencing the view function in urlpatterns

2010-01-13 Thread Tim Miller
Zeynel wrote: Thanks. This may be it. I'll try it later. But does that also explain why in the dev server the reference is not a string but in the production server it is a string? http://docs.djangoproject.com/en/dev/topics/http/urls/#passing-callable-objects-instead-of-strings That link

Re: Referencing the view function in urlpatterns

2010-01-13 Thread Zeynel
Thanks. This may be it. I'll try it later. But does that also explain why in the dev server the reference is not a string but in the production server it is a string? On Jan 13, 12:23 pm, Tim Miller wrote: > Zeynel wrote: > > I created a view function for a search form and put

Re: Referencing the view function in urlpatterns

2010-01-13 Thread Tim Miller
Zeynel wrote: I created a view function for a search form and put it in my views.py like this: (r'^search-form/$', views.search_form), This worked fine in the development server. When I did the same in the production server I got an 500 server error. Then I realized that the reference to view

Referencing the view function in urlpatterns

2010-01-13 Thread Zeynel
I created a view function for a search form and put it in my views.py like this: (r'^search-form/$', views.search_form), This worked fine in the development server. When I did the same in the production server I got an 500 server error. Then I realized that the reference to view should be

Re: PUT with the test client

2010-01-13 Thread Malcolm Box
On Wed, Jan 13, 2010 at 3:05 PM, Karen Tracey wrote: > On Wed, Jan 13, 2010 at 9:55 AM, Malcolm Box wrote: > >> I'm writing some tests using the Django test client for a REST API. This >> API uses the PUT method and I'm running into problems with the

Re: Best Architectural Practices on Views-Forms-Saving

2010-01-13 Thread Roboto
wow, that looks fantastic. On Jan 13, 11:34 am, Daniel Roseman wrote: > On Jan 13, 3:58 pm, Roboto wrote: > > > > > Hi everyone, > > I've been building with Django for a while now [having learned Python > > at the same time], I am about to start my next

Re: Best Architectural Practices on Views-Forms-Saving

2010-01-13 Thread Daniel Roseman
On Jan 13, 3:58 pm, Roboto wrote: > Hi everyone, > I've been building with Django for a while now [having learned Python > at the same time], I am about to start my next project and looking > back into some of my older code I can see right away that it's a > terrible way to

Best Architectural Practices on Views-Forms-Saving

2010-01-13 Thread Roboto
Hi everyone, I've been building with Django for a while now [having learned Python at the same time], I am about to start my next project and looking back into some of my older code I can see right away that it's a terrible way to code Django. For instance: Task: Build a web form that can will

Re: PUT with the test client

2010-01-13 Thread Karen Tracey
On Wed, Jan 13, 2010 at 9:55 AM, Malcolm Box wrote: > Hi, > > I'm writing some tests using the Django test client for a REST API. This > API uses the PUT method and I'm running into problems with the test client, > as it appears to wish to URL encode the data into the

PUT with the test client

2010-01-13 Thread Malcolm Box
Hi, I'm writing some tests using the Django test client for a REST API. This API uses the PUT method and I'm running into problems with the test client, as it appears to wish to URL encode the data into the query string. Code is: r = self.client.put('/json/api/endpoint', json.dumps(params),

Re: Send and Receive SMS from a django app

2010-01-13 Thread tback
Hi Alessandro, yes, it's possible to send sms messages (I use this myself every day) and to receive sms messages (that's an assumption). The easiest way is through a sms gateway. http://www.celltrust.com/ is a provider that advertisises two way messaging. cheers, Till On Jan 13, 1:53 pm,

Re: Send and Receive SMS from a django app

2010-01-13 Thread Tran Cao Thai
Wow, there is an answer after 2 mins. This community really rocks :D On Wed, Jan 13, 2010 at 8:55 PM, Daniel Hilton wrote: > >     http://www.rapidsms.org/ > > > 2010/1/13 Alessandro Ronchi : >> Is it possible with linux and django to send

Re: Table with 4 Milions of rows

2010-01-13 Thread Jens Rantil
Hi Nameless, On Jan 12, 9:20 pm, nameless wrote: > The table is queried from ajax using an autocomplete field with this > query in the views.py: > > books.objects.filter(book_title__istartswith=request.GET['q'])[:100] This should not be a problem in MySQL either if you

Re: Send and Receive SMS from a django app

2010-01-13 Thread jenlu
RapidSMS is - if I can read it correctly - basically a GSM modem hw and some django stuff around it. So you install it on your hw and then send your own SMS. Still, sort of 'old-school' ;-) We have done it by interfacing our django app towards an SMS GW provider (actually both SMS, MMS and

Re: Send and Receive SMS from a django app

2010-01-13 Thread jenlu
RapidSMS is - if I can read it correctly - basically a GSM modem hw and some django stuff around it. So you install it on your hw and then send your own SMS. Still, sort of 'old-school' ;-) We have done it by interfacing our django app towards an SMS GW provider (actually both SMS, MMS and

Re: need for caching POST requests

2010-01-13 Thread Hinnack
Yes I can read the code! As you can read in my first mail, I did not ask anybody to write it for me! I just asked if somebody did this before and if others have the same need! 2010/1/13 Tomasz Zieliński > On 13 Sty, 11:09, Hinnack

Re: Send and Receive SMS from a django app

2010-01-13 Thread Daniel Hilton
http://www.rapidsms.org/ 2010/1/13 Alessandro Ronchi : > Is it possible with linux and django to send and receive data from SMS from > a django APP? Did anyone managed to do that? > > -- > Alessandro Ronchi > > http://www.soasi.com > SOASI - Sviluppo Software e

Send and Receive SMS from a django app

2010-01-13 Thread Alessandro Ronchi
Is it possible with linux and django to send and receive data from SMS from a django APP? Did anyone managed to do that? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source http://hobbygiochi.com Hobby & Giochi, l'e-commerce del divertimento -- You

ContentType and __unicode__ description

2010-01-13 Thread Matias
Hi, I have a model like: Class MyModel(models.Model): content = content.ForeignKey(ContentType) And in the admin interface I have a dropdown box showing all the content types I have. Works perfect. The problem is that on that dropdown box, I have for each item there the "name"

Re: need for caching POST requests

2010-01-13 Thread Tomasz Zieliński
On 13 Sty, 11:09, Hinnack wrote: > there must be done more then this - e.g. the value of the key the data is > stored in cache has to be calculated from POST vars > instead of URL alone Why don't you take a look yourself:

Re: need for caching POST requests

2010-01-13 Thread Hinnack
there must be done more then this - e.g. the value of the key the data is stored in cache has to be calculated from POST vars instead of URL alone 2010/1/13 Tomasz Zieliński > > > On 13 Sty, 07:54, hinnack wrote: > > Hi, > > > >

Re: Model inheritance

2010-01-13 Thread Tomasz Zieliński
On 12 Sty, 20:52, a b wrote: > Hi, > > I have three models: > Product > SimpleProduct that extends Product > GroupProduct that extends Product and have ManyToMany relation with > SimpleProduct > > The reason to use the base Product model is so I can use paging. > Is it

Re: Migrating Many-To-Many Relationship

2010-01-13 Thread Tomasz Zieliński
On 12 Sty, 22:53, David Nolen wrote: > When migrating an existing db how do you create a proper join table > for a ManyToMany field. I think I've got it mostly worked out except > for the bit that looks like this in Django generated SQL: > > CREATE TABLE

Re: m2m in views

2010-01-13 Thread Tomasz Zieliński
On 12 Sty, 23:24, shaner wrote: > I'm trying to make a model's detail view, take movies for example; > actors are m2m to movies > > this works but it doesn't feel right is there, i pass this context to > the template where i for loop through the actor list > > >>>

Re: need for caching POST requests

2010-01-13 Thread Tomasz Zieliński
On 13 Sty, 07:54, hinnack wrote: > Hi, > > I need to cache POST requests, too, on certain requests. > The requests are not changing data, but imagine an XMLRPC > service (that is based on POST requests only per spec anyway) uses > functions, that always return the