Re: Getting Out of range value adjusted for column 'created_on' at row 1

2008-01-26 Thread shabda
When trying to save a model object I get an error saying, Getting Out of range value adjusted for column 'created_on' at row 1 This is the line, which is causing the error. new_entry.created_on = time.mktime(entry.updated_parsed) If I remove this line and add null = True to created_on field I d

Getting Out of range value adjusted for column 'created_on' at row 1

2008-01-26 Thread shabda
When trying to save a model object I get an error saying, This is the line, which is causing the error. If I remove this line and add null + True to created_on firld I do not get the exception. The traceback is at, http://dpaste.com/32727/ --~--~-~--~~~---~--~~ Yo

django-queue-service documentation

2008-01-26 Thread shabda
I want to use django-queue-service to run long running processess in background, but I can not find any documentation about this. Their website http://code.google.com/p/django-queue-service/ does not contain any docs. Does any one have any links, about how to use it? --~--~-~--~~--

Re: ForeignKey _id not so transparent

2008-01-26 Thread James Bennett
On Jan 26, 2008 11:36 PM, msoulier <[EMAIL PROTECTED]> wrote: > instance = models.ForeignKey(TugInstance) > > When my form is submitted, I am assigning > > client.instance = form.clean_data['instance_id'] You can assign a numeric ID of a TugInstance object to 'instance_id' on a Client object. Yo

ForeignKey _id not so transparent

2008-01-26 Thread msoulier
So, I have a Client model that includes an instance field instance = models.ForeignKey(TugInstance) When my form is submitted, I am assigning client.instance = form.clean_data['instance_id'] But this isn't working. I get an error on save() that 'instance_id' cannot be NULL. If I change my cod

China's Netizens Prosecute for Bush-administration......by dayrong

2008-01-26 Thread 自由网民
China's Netizens Prosecute for Bush-administration Plaintiff: Day Rong Gender: Male Date of Birth: April 20th, 1970 Domicile: China ID Card No.: 330302197004205239 e-mail: [EMAIL PROTECTED] homepage: http://dairong.blogspot.com/ http://groups.google.com/group/

Re: Outputting individual fields of a Model form

2008-01-26 Thread James Bennett
On Jan 26, 2008 7:35 PM, almostvindiesel <[EMAIL PROTECTED]> wrote: > I figured {{ form['recipe_name'] }} or > {{ unicode(form['recipe_name']) }} should work per the documentation > here: http://www.djangoproject.com/documentation/newforms/, but doing > so returns the following error within the te

Re: Outputting individual fields of a Model form

2008-01-26 Thread Jonathan Buchanan
almostvindiesel wrote: > I have a ModelForm called RecipeForm built from a Recipe model. > > In the template, I'd like to output the individual components of the > form. Writing {{ form.as_table }} successfully renders the entire > form, however, I just want to output individual fields. > > I f

Outputting individual fields of a Model form

2008-01-26 Thread almostvindiesel
I have a ModelForm called RecipeForm built from a Recipe model. In the template, I'd like to output the individual components of the form. Writing {{ form.as_table }} successfully renders the entire form, however, I just want to output individual fields. I figured {{ form['recipe_name'] }} or {

Re: Finding details of a Model object, which do not have objects of a given M2M field

2008-01-26 Thread [EMAIL PROTECTED]
Doh, this is what happens when I post before my second dose of caffeine, there are no negative filters there is just the exclude method, so the original thing should be: blog = Blog.objects.get(pk=something) entries = blog.entry_set.exclude(user=some_user) On Jan 26, 11:41 am, shabda <[EMAIL PRO

Re: Finding details of a Model object, which do not have objects of a given M2M field

2008-01-26 Thread shabda
Should for a M2M field ModelClass.objects.all() be same as ModelClass.objects.filter(some_m2m = some_m2m) UNION ModelClass.objects.exclude(some_m2m = some_m2m)? If yes then probably there is a bug. To test define a model class as in [1]. Do the tests like in [2]. You .all() does not give same resu

Re: Django multilingual

2008-01-26 Thread Ivan Illarionov
Piotr, having django-multilingual features in the core won't make them any better. Complex models and use-cases will still need custom/manual solutions. It will add unneeded overhead to single-language sites and may even break the sites that use explicit custom solutions (like mine). I am develop

Re: Finding details of a Model object, which do not have objects of a given M2M field

2008-01-26 Thread [EMAIL PROTECTED]
Blog.entry_set.filter(user__ne=some_uesr) On Jan 26, 6:14 am, shabda <[EMAIL PROTECTED]> wrote: > I have the model like, > > class Blog(models.Model): > url = models.URLField() > > class Entry(models.Model): > blog = models.ForeignKey(Blog) > user = models.ManyToManyField(User) > > Us

Re: multilingual projects in django...

2008-01-26 Thread Ramiro Morales
On Jan 26, 2008 10:40 AM, halukdogan <[EMAIL PROTECTED]> wrote: > > hello > > i'm trying to develop a multilingual web app with django. i've > acchieved making django translate the messages in the views.py but it > does not translate the messages in the template files. > my message file for Englis

Re: multilingual projects in django...

2008-01-26 Thread J. Clifford Dyer
On Sat, 2008-01-26 at 04:40 -0800, halukdogan wrote: > hello > > i'm trying to develop a multilingual web app with django. i've > acchieved making django translate the messages in the views.py but it > does not translate the messages in the template files. > my message file for English is: > >

Re: pdf/Firefox and turning off GZipMiddleware

2008-01-26 Thread [EMAIL PROTECTED]
Interesting, although I'm seeing behavior that's inconsistent with the bugreport... With GZipMiddleware turned on, the pdf displays in an external viewer from both IE7 and FF2 (when I don't set the Content- Disposition); and it also displays in-browser in IE7. The only place it doesn't display is

multilingual projects in django...

2008-01-26 Thread halukdogan
hello i'm trying to develop a multilingual web app with django. i've acchieved making django translate the messages in the views.py but it does not translate the messages in the template files. my message file for English is: #: html/anasayfa.html:9 #, fuzzy msgid "Hatali Giris" msgstr "Not Auth

Finding details of a Model object, which do not have objects of a given M2M field

2008-01-26 Thread shabda
I have the model like, class Blog(models.Model): url = models.URLField() class Entry(models.Model): blog = models.ForeignKey(Blog) user = models.ManyToManyField(User) User is contrib.auth.db.USER Now I given a blog and a user I need to find out all the Entry objects which are a det

Re: Django multilingual

2008-01-26 Thread Piotr Majewski
I see your point, but i just wanted to post my idea for future features of Djangos ORM. I hope that developers will consider this usefull and important functionality. On 26 Sty, 04:23, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Jan 26, 2008 6:03 AM, Piotr Majewski <[EMAIL PROTECTED]> w

Re: Image upload error

2008-01-26 Thread todd
thanks a lot rajesh, i tried your suggestions but the same issue came up. i have the feeling that invalid characters or something were being inserted into the sql table, that's the only thing i can think of when seeing all of the backslash output in the error message. anyway, i got a suggestion

timeout a scrape

2008-01-26 Thread [EMAIL PROTECTED]
I'd like to grab the title from a url submitted by a user. I don't trust users much, so I want to timeout the call. I'm using urllib.urlopen to grab the page. Is there a better tool? Is there a Django-safe way to wrap a grabTitle function so that after a few seconds or so a default title is us

Re: Sending SMS messages

2008-01-26 Thread John
can you share some other service names, not necessarily cheaper but with a decent api like clickatell has? >>> clickatell is the best for price and reliability Regards, SMS Gateway Expert http://www.visualtron.com --~--~-~--~~~---~--~~ You received this message