Re: Object ID is not assigned after calling save() on a new object

2010-08-24 Thread Rohan Jain
Django assigns an id field to models automatically, so you dont need to define it seperately. And even if you define it you have to assign auto_increment = true so that it is automatically filled. On Aug 24, 2:55 pm, Dan wrote: > Hi, > > I have some troubles with my Django model: whenever I creat

Re: Any job queue systems that integrates with Django & allow scheduling jobs by date?

2010-08-17 Thread Rohan Jain
i think what you need is http://code.google.com/p/django-cron/ Also you may want to check out http://celeryq.org/ if you want to do parallel processing, distribute jobs to other computers to ease the web server load. On Aug 18, 5:10 am, Andy wrote: > I have a Django application. > > One of my mo

Re: django queryset get only one result for one column pair

2010-08-14 Thread Rohan Jain
My models are defined like this: class Problem(models.Model): title = models.CharField('Title', max_length = 100) question = models.TextField('Question') class Submission(models.Model): user = models.ForeignKey(User) problem = models.ForeignKey(Problem) solution = models.CharK

Re: django queryset get only one result for one column pair

2010-08-14 Thread Rohan Jain
On Aug 14, 5:57 pm, Kenneth Gonsalves wrote: > On Sat, 2010-08-14 at 05:45 -0700, Rohan Jain wrote: > > I have a field 'submission' which has a 'user' and a 'problem'. > > How can i get a django queryset search result which will give a list > >

Re: django queryset get only one result for one column pair

2010-08-14 Thread Rohan Jain
submission by u1,u2 on p1. On Aug 14, 5:57 pm, Kenneth Gonsalves wrote: > On Sat, 2010-08-14 at 05:45 -0700, Rohan Jain wrote: > > I have a field 'submission' which has a 'user' and a 'problem'. > > How can i get a django queryset search result which wil

django queryset get only one result for one column pair

2010-08-14 Thread Rohan Jain
I have a field 'submission' which has a 'user' and a 'problem'. How can i get a django queryset search result which will give a list of only one result per user-problem pair. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Django with AJAX, execution of long processes

2010-08-07 Thread Rohan Jain
Hi! I have a problem with django and ajax. I am giving requests from ajax which run a process that takes some time and has many stages. Is there any way to return the various stages as responses, so the user does not have to see only the loading image but can also the current status of the process