Re: Is there any good tutorial on how to daemonize celery?

2013-06-06 Thread Michael Thon
> CELERY_RESULT_BACKEND = "database" > CELERY_RESULT_DBURI = > "postgresql://"+get_env_setting('DB_USER')+":"+get_env_setting('DB_PASSWD')+"@localhost/"+get_env_setting('DB_NAME') > > Now I tried to run it with this manage.py command > > python manage.py celery worker

Re: coding urls in templates

2012-08-31 Thread Michael Thon
tings'), > ) > > Then use the url template tag as follows: > > for an anchor tag like Profile > use Profile > > Hope this helps. > > On Fri, Aug 31, 2012 at 11:33 AM, Michael Thon <mike.t...@gmail.com> wrote: > > > > the root directlry of my domain is hosting

Re: coding urls in templates

2012-08-31 Thread Michael Thon
the root directlry of my domain is hosting wordpress, which I'm using to develop the landing pages: www.zetawrite.com (I know, it still needs a lot of work). The app itself will only be available to logged in users so I thought that the easiest way to deploy it would be to run it in a

fork: Resource temporarily unavailable running django on fastcgi

2010-01-19 Thread Michael Thon
I set up django to run on FCGI in a shared hosting account using a guide that I found in my web host's forums. The setup is working except that after accessing some pages I get an error on my shell session: -jailshell: fork: Resource temporarily unavailable I was able to kill the python

Re: following relationships forward in queries

2010-01-15 Thread Michael Thon
On Jan 15, 2010, at 11:26 AM, Daniel Roseman wrote: > On Jan 15, 9:40 am, Michael Thon <mike.t...@gmail.com> wrote: >> Here is the Post model, from the feedjack app >> >> class Post(models.Model): >> feed = models.ForeignKey(Feed, verbose_name=_('fe

Re: following relationships forward in queries

2010-01-15 Thread Michael Thon
to access the SensePost properties. The way I wrote it seems the most appropriate...but then it doesn't work... Thanks Mike On Jan 15, 2010, at 10:00 AM, Daniel Roseman wrote: > On Jan 15, 5:43 am, Michael Thon <mike.t...@gmail.com> wrote: >> I have an Model with a field tha

following relationships forward in queries

2010-01-14 Thread Michael Thon
I have an Model with a field that is a oneToOne relationship with a model in another app: class SensePost (models.Model): feedjackpost = models.OneToOneField(Post, blank=True, null=True) ... I'm trying to to write a filter query that uses fields in the related model: senseposts =

Re: Table with 4 Milions of rows

2010-01-12 Thread Michael Thon
On Jan 12, 2010, at 8:25 PM, nameless wrote: > My table with 4 milions of rows is queried often by ajax. > So I think a performance problems ( I am using also index ). > Ok now take a look at the contenttypes :) I don't know what overhead django will put on the queries but 4 million rows

Re: concurrency and threading question

2009-10-21 Thread Michael Thon
On Oct 21, 2009, at 11:55 AM, Daniel Roseman wrote: > > On Oct 21, 9:28 am, Mike Thon wrote: >> I'm new to web programming and I have a basic question about the >> design of my Django application. my application will do some number >> crunching on data files uploaded by