Re: ReferenceError

2006-09-02 Thread Andy Dustman
On 9/2/06, Lorenzo <[EMAIL PROTECTED]> wrote: > > Hi, > I'm updating an application created with Django 0.91 a few months ago. > I'm writing an external application that fills the db, using django as > an ORM. > Sometimes I get a strange ReferenceError, I think caused by a > concurrency issue

Re: Filtering data in a many-to-many relation of object to itself

2006-09-02 Thread Vizcayno
James Bennett wrote: > On 9/2/06, Vizcayno <[EMAIL PROTECTED]> wrote: > > I need data4 to show me only those records whose data3 value is True. > > data4 = models.ManyToManyField('self', null=True, blank=True, > filter_interface=models.HORIZONTAL, limit_choices_to={'data3__exact': True}) > > --

Re: ForeignKey/Relationship Question

2006-09-02 Thread James Bennett
On 9/2/06, Tom Davis <[EMAIL PROTECTED]> wrote: > Okay, I am creating a site in Django who's forum system runs on > vBulletin. Is there anyway to hook my models into the vB tables so > that I can use them basically in tandem? I don't really need vB to do > anything with my Django tables, but

Re: Displaying comments in reverse date order in generic views

2006-09-02 Thread James Bennett
On 9/2/06, keukaman <[EMAIL PROTECTED]> wrote: > {% get_free_comment_list for blog.entry object.id as comment_list %} > > But when I display the comments they are in the order they were entered > in the database. Could someone share with me the way to display > comments to that they display with

ReferenceError

2006-09-02 Thread Lorenzo
Hi, I'm updating an application created with Django 0.91 a few months ago. I'm writing an external application that fills the db, using django as an ORM. Sometimes I get a strange ReferenceError, I think caused by a concurrency issue with the MySql layer (it is a multithreaded application). Is

Filtering data in a many-to-many relation of object to itself

2006-09-02 Thread Vizcayno
Hello: I have next model: from django.db import models class Tab1(models.Model): data1 = models.CharField(maxlength=1) data2 = models.CharField(maxlength=5) data3 = models.BooleanField(default=False) data4 = models.ManyToManyField('self', null=True, blank=True,

Displaying comments in reverse date order in generic views

2006-09-02 Thread keukaman
I am showing comments on a generic view page by using {% get_free_comment_list for blog.entry object.id as comment_list %} But when I display the comments they are in the order they were entered in the database. Could someone share with me the way to display comments to that they display with

Many to Many Field

2006-09-02 Thread themak
How do I access and edit data in a many to many field? I am completely at a loss for how they can be acessed in templates etc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

ForeignKey/Relationship Question

2006-09-02 Thread Tom Davis
Okay, I am creating a site in Django who's forum system runs on vBulletin. Is there anyway to hook my models into the vB tables so that I can use them basically in tandem? I don't really need vB to do anything with my Django tables, but there are a few instances where I really need my Django

Re: Re: foreignKey + manipulator...performance problem

2006-09-02 Thread James Bennett
On 9/2/06, Jorge Gajon <[EMAIL PROTECTED]> wrote: > Or maybe just wait for the impending removal of manipulators :) The class django.forms.Manipulator is going away, as are classes derived from it. The functionality they provide, however, is not going away -- it's just going to be handled

Re: foreignKey + manipulator...performance problem

2006-09-02 Thread Jorge Gajon
On 9/2/06, Jorge Gajon <[EMAIL PROTECTED]> wrote: > I think this should be put on a ticket as an enhancement, the > manipulator should load the foreign data only (and just only) when you > actually put a {{ form.foreign_field }} in your template and the html > select tag needs to be rendered. Or

Re: foreignKey + manipulator...performance problem

2006-09-02 Thread Jorge Gajon
Hi, On 8/30/06, gabor <[EMAIL PROTECTED]> wrote: > everything is ok, until you call > > Owner.AddManipulator()... this will take a long time. I got this same problem yesterday, however I'm short in time so I couldn't look deeper on what to do. I ended passing follow={'field':False} and

Adding custom row's

2006-09-02 Thread Anders Aagaard
Hi I found I could use x.extra(select) statements to add custom row's to my objects, and since this lowers the amounts of query I need immensly, I've started to love it. (my old front page took about 2 seconds to load fully, the new one is instant). Example: query =

Re: Non-Django content on the RSS feed?

2006-09-02 Thread James Bennett
On 9/2/06, Don Arbow <[EMAIL PROTECTED]> wrote: > Is there any reason why XBox 360 and Java libraries articles are > posted on the community RSS feeds page? Not to pick on a specific > blog (the author does occasionally write about Django and the blog is > written in Django). Is there a way to

Non-Django content on the RSS feed?

2006-09-02 Thread Don Arbow
Is there any reason why XBox 360 and Java libraries articles are posted on the community RSS feeds page? Not to pick on a specific blog (the author does occasionally write about Django and the blog is written in Django). Is there a way to filter out non-Django content from the feeds?

Custom Application Dispatcher

2006-09-02 Thread dt
I've been using Django for my new projects and I really like it. Now I am up to for advanced stuff. Here is what I need. I'd like to adopt Django into an existing portal framework that has all authentication and other things which reside in a database (oracle). So I am trying to imitate/replace

Re: How to use month/date/year menus for date?

2006-09-02 Thread Jakub 'teodor' Krajniak
Sean Schertell wrote: (...) > In my view, I'm using FormWrapper and that automatically makes a text > field for the date where the user is expected to enter the date as > -mm-dd. Personally, I think that's not the most user friendly way > to collect a date from the user. I like the more

Re: Django patch!

2006-09-02 Thread Jan Claeys
Op vr, 01-09-2006 te 23:55 -0500, schreef Jacob Kaplan-Moss: > On Sep 1, 2006, at 7:05 PM, Jan Claeys wrote: > > The Akismet "spam protection" does more bad than good, that's going > > on. (Someone will ask you to submit your IP to be added to a whitelist > > soon, but that's just fighting

Re: displaying thumbnails in the admin

2006-09-02 Thread Milton Waddams
You'll need to render an image and insert that image in the admin html. So, you'll want a view for the admin html page and a view for the thumbnail image. As far as using foo.show() you'll instead need to write the image to either a file or a response. On 9/2/06, adamjspooner <[EMAIL

Re: Kate syntax highlighting for django html templates.

2006-09-02 Thread Joseph Wenninger
Hi ! The highlighting description looks okay. If you are willing to maintaing it and to contribute it to the Kate project, we (the Kate developers) would be interested in putting it into: 1) the highlighting description update system 2) the base distribution for KDE 4 Just let me or [EMAIL

Re: Yet another Django application

2006-09-02 Thread didier Belot
2006/9/1, Jan Claeys <[EMAIL PROTECTED]>: d> Also look at the new init replacement ('upstart') then: > > Yes! Thanks for the links. -- didier

Re: Accessing parent classes within admin site list_display function

2006-09-02 Thread DF
Thanks for the help Rajesh. I had seen that quote before but it really didnt click quite right until made painfully obvious. Is there a cleaner way to acess parent model fields easily with the list_display function itself? The only way I have been able to do so is like this: ### class

Re: Django patch!

2006-09-02 Thread [EMAIL PROTECTED]
Yes, Tom Tobin: http://groups.google.com/group/django-developers/browse_thread/thread/073adcd35547d150 --Simon Kenneth Gonsalves wrote: > On 02-Sep-06, at 10:47 AM, Ian Holsman wrote: > > > b. email jacob to get your IP# white listed > > afaik someone else has been allotted this job > > -- > >

Re: How to use month/date/year menus for date?

2006-09-02 Thread viestards
> The question is, how can I get those three menus to create a single > date object that plays nice with Django? > I think the easyest way will be to format selected day, month, year with Javascript, but definetly not the best. May be write a custom Validator.

Re: group traffic

2006-09-02 Thread Frank Stüss
Am Freitag, 1. September 2006 21:27 schrieb Waylan Limberg: > Now if someone added the abilty for a certain forum package to also > act like a mailing list, that would be something to think about. +1 And if it was written in django and could be used as an example of excellent programming it