Django-Celery: Rate Limit

2011-03-07 Thread ju
Why when I use rate_limit even the first task and the first try is waiting for some time before it's executed? -- 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 unsubscribe fr

Django-Celery: Task Retry and worker shut down

2011-03-07 Thread ju
What will happend if I shut down worker thread but the tasks is waiting for retry? Will I lose the task and how to avoid that? What is the correct way to stop django-celery worker in Windows? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Python/Django AMQP?

2011-02-24 Thread ju
I have a django web application which creates and saves jobs in a database. For every job I have to send email and export data to another system. I want to make it asynchronously. What is the recommended way to do it? - It have to be reliable (no jobs missed). - There have to be easy wa

Re: Django Form Validation

2011-02-22 Thread ju
Thank you -- 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 unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this

Django Form Validation

2011-02-21 Thread ju
Is it possible to add form errors (not a field specific errors) to a form that is already validated (form.is_valid() is already called and the result is True)? I have additional validation logic (with database requests) which I prefer to execute after standard form validation is passed, but it wil

Re: Django & Postgres explicit SQL parameters escape

2011-02-21 Thread ju
 I know from personal experience that it works with the > PostgreSQL back end. > > Bill > > > > > > > > On Mon, Feb 21, 2011 at 5:44 AM, ju wrote: > > I need to construct a long SQL request to my database, but I'm not > > sure how can I es

Django & Postgres explicit SQL parameters escape

2011-02-21 Thread ju
I need to construct a long SQL request to my database, but I'm not sure how can I escape parameters correctly How can I explicitly escape parameters in SQL like cursor.execute() does? Can you also give me an example what exactly this escaping have to do, so I can test it? Is there any difference

Django custom field or widget?

2011-02-16 Thread ju
I have an integer fields, but their default widget is TextInput. I want to use Select widget, but I have to explicitly provide possible values. Is it possible they to be automatically generated from 'initial', 'min_value' and 'max_value' validation rules of integer! field? Do I have to make my ow

Re: Django Templates: Form field name as variable?

2011-02-16 Thread ju
rms.IntegerField(label = '', initial = 0, min_value = 0, max_value = self._max_tickets_count) and there are validation rules - integer value from 0 to _max_tickets_count On Feb 15, 9:24 pm, Mike Ramirez wrote: > On Tuesday, February 15, 2011 01:31:07 am ju wrote: > > >

Re: Django Templates: Form field name as variable?

2011-02-15 Thread ju
Thank you very much for you answer I prefer to use validation that form class provides for me... I tried to use but the other problem that I have is that I can't get errors for each field of form :( There is another solution that I decide to use: http://stackoverflow.com/questions/4993625/djang

Django Templates: Form field name as variable?

2011-02-14 Thread ju
How can I make this loop to print form fields where is the value of ticket.id? {% for ticket in zone.tickets %} {{ ticket.id }}: {{ form.ticket_count_ }} {% endfor %} So the output to be something like this... 1: 10: 12: 3: -- You received this message because you are

Re: Django dynamic form with additional meta data

2011-02-11 Thread ju
I found my mistake i made ___init__ function instead of __init__ :) On Feb 11, 7:06 pm, Shawn Milochik wrote: > You could be missing something, but I don't have enough to go on. Did > you add the field to your template? What do your view and template > look like? -- You received this message be

Re: Django dynamic form with additional meta data

2011-02-11 Thread ju
View = def detail(request, event_id): event = get_object_or_404(Event, pk = event_id) if request.POST : purchaseForm = PurchaseForm(request.POST) #... else: purchaseForm = PurchaseForm() return render_to_response('events/detail.html', {'event': eve

Re: Django dynamic form with additional meta data

2011-02-11 Thread ju
I tried to make this small example form from django import forms class PurchaseForm(forms.Form): email = forms.EmailField() #agree = forms.BooleanField() def ___init__(self, *args, **kwargs): super(PurchaseForm, self).__init__(*args, **kwargs) self.fields['agree'] = f

Django dynamic form with additional meta data

2011-02-11 Thread ju
Hello I want to make an form for purchasing tickets. The problem is that for every event there can be diferent types of ticket with diferent price. For every kind of ticket I will have to create an edit box where user can select how much tickets he wants. Then in view class I will just display t