Re: pseudo one-to-one

2012-01-15 Thread Mike Dewhirst
On 16/01/2012 5:19pm, Bill Beal wrote: Why not have a child model that differs from the one-to-one child model in that the parent key is now a foreign key to the parent? When another child needs to replace the current one in the one-to-one relationship, move the child to the second table where

Re: Joining tables

2012-01-15 Thread Arun P
Does this work? info = ExtraInformation.objects.filter(user__is_active=1,user__is_staff=0,user__is_superuser=0).order_by("popularity").select_related("user") users = map(lambda i: i.user, info) Thanks On Sun, Jan 15, 2012 at 1:05 AM, Swaroop Shankar V wrote: > hello

Re: Alternatives to celery

2012-01-15 Thread Arun P
@Isaac, How about gearman? Gearman seems to support multiple projects through one gearman server. On Mon, Jan 16, 2012 at 1:43 AM, Isaac XXX wrote: > Hi folks, > > I need a solution to create cron-like jobs into my django projects. I've a > server with several projects. > >

Re: pseudo one-to-one

2012-01-15 Thread Bill Beal
Why not have a child model that differs from the one-to-one child model in that the parent key is now a foreign key to the parent? When another child needs to replace the current one in the one-to-one relationship, move the child to the second table where there is a many-to-one relationship to

pseudo one-to-one

2012-01-15 Thread Mike Dewhirst
I need a one-to-many to behave like a one-to-one. The parent instance of my model can only ever have one current child instance of another model. Multiple child instances have to exist and be kept for the historical record. The main benefit of one-to-one relationships is that they can be

mac vs windows installation /deployment

2012-01-15 Thread Python_Junkie
I have been developing python/django programs on a windows machine at work for several years and have been very satisfied with the functionality available from the available modules in windows. I thought I would expand my universe and set up the development environment on a mac this weekend at

Re: Open-source or closed-source for SaaS?

2012-01-15 Thread Mike Dewhirst
On 16/01/2012 3:09pm, Alec Taylor wrote: Initially I was going closed-source all the way, or at least until we have a good reputation, and open-sourcing will only improve that rep. Recently though, I've been thinking about open-sourcing the entire solution. Various popular SaaS solutions have

Open-source or closed-source for SaaS?

2012-01-15 Thread Alec Taylor
Initially I was going closed-source all the way, or at least until we have a good reputation, and open-sourcing will only improve that rep. Recently though, I've been thinking about open-sourcing the entire solution. Various popular SaaS solutions have open-sourced under AGPL and are generating

Freeze changelist ?

2012-01-15 Thread Lee
Hi, I'm looking for a way to to freeze the Admin changelist column heading row so it does not scroll vertically, yet scrolls horizontally with the results rows and keeps the column headings the same widths as the corresponding results columns, ala Excel. I've read all kinds of related posts

Re: Alternatives to celery

2012-01-15 Thread Carlos Daniel Ruvalcaba Valenzuela
Hi, so far I have been using one celery instance per project and seems to work ok, I have setup scripts (fabric) to start and reload the project celery server (via manage.py celeryd), some notes en backends: * Shared redis instance does not seem to work well, unless you use different db numbers.

Alternatives to celery

2012-01-15 Thread Isaac XXX
Hi folks, I need a solution to create cron-like jobs into my django projects. I've a server with several projects. I've testes celery, and it seems to work well with only 1 project, but when I need to set up several projects with celery support, I can't figure how to do it (because

Re: Database connection closed after each request?

2012-01-15 Thread Daniel Gerzo
On 15.1.2012 3:36, ydjango wrote: Any updates on MySQL connection pool for django. Has anyone implemented it yet and willing to share? Graham Dumpleton also raised it in G+ today. On Nov 20 2011, 5:45 am, Jonathan wrote: Does anyone know if this progressed anywhere

Re: Database connection closed after each request?

2012-01-15 Thread Matteius
I've heard/read that MySQL proxy supports a connection pool. See (http://forge.mysql.com/wiki/MySQL_Proxy_FAQ) Basically this was a good original observation about the overhead of opening/closing DB connections for every request. I think tools exist out there such as MySQL proxy that can

Re: django site home page

2012-01-15 Thread Guddu
Hi Marjenni, Something like this (r'^$','.views.'), Replace the variables in <> accordingly Regards, Guddu On Jan 15, 7:39 pm, marjenni wrote: > Hi all, >    A really simple one. What goes in urls.py to set a callback > function for the base website url? >

django site home page

2012-01-15 Thread marjenni
Hi all, A really simple one. What goes in urls.py to set a callback function for the base website url? thanks mark -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To

Re: Selecting an E-commerce Application

2012-01-15 Thread Kai Diefenbach
Moin, On 2012-01-15 07:18:51 +, Swaroop Shankar V said: I need to integrate an e-commerce application into my project and i was checking few options and I rounded of to 2 options: 1) Satchless 2) Plata Please note that I don't wish to use a framework, instead i wanted an app which i can

Re: Selecting an E-commerce Application

2012-01-15 Thread Kai Diefenbach
Moin, On 2012-01-15 13:21:50 +, Alec Taylor said: The two main ones are Satchmo and LFS. There's also the up-and-coming django-shop which has a better architecture than the others. Huh? Please elaborate. Kai -- You received this message because you are subscribed to the Google Groups

Re: Selecting an E-commerce Application

2012-01-15 Thread Alec Taylor
I hadn't heard of Plata. The two main ones are Satchmo and LFS. There's also the up-and-coming django-shop which has a better architecture than the others. On Sun, Jan 15, 2012 at 5:48 PM, Swaroop Shankar V wrote: > Hello All, > > I need to integrate an e-commerce

Re: Staticfiles on shared hosting using FCGI

2012-01-15 Thread Babatunde Akinyanmi
Thanks. It worked. It seems my problem is with understand STATIC_URL setting On 1/15/12, francescortiz wrote: > You can place the static files in the public html directory via > symlink if allowed or copying them, and have rewrite rules that > redirect to your django

How to ForeignKey automatically add new row?

2012-01-15 Thread Tsung-Hsien
Hello, I want to connect User to Userprofile. When I create new user, the Userprofile can't automatically add new user. Should I need to write create Userprofile on view? Why the ForeignKey can't automatically add? My model as below: class Userprofile(models.Model): user =

Re: Staticfiles on shared hosting using FCGI

2012-01-15 Thread francescortiz
You can place the static files in the public html directory via symlink if allowed or copying them, and have rewrite rules that redirect to your django fcgi instance only in case a a file doesn't exist. On Jan 14, 8:06 am, Tundebabzy wrote: > I am stuck after running