Highlighting Search Results

2006-03-26 Thread bradford
A question came up in #django and I was wondering what the best solution may be: how to highlight search results. Here are some possibilities: 1. Add in around the returned results for the searched words in the view. 2. Template filter 3. Template tags Please expand on any ideas. Thanks

Re: Showing admin-style forms on regular user forms?

2006-03-26 Thread shredwheat
This is some amazing work, thank you! I have the magic widgets in my form now, it was quite simple to do following your work. Looks like I still need to bless them with some CSS because they are semi rancid looking. But it all works as needed. Still using the generic update_object view to

Re: Memory leak (db connection related?) with apache/postgres and magic-removal

2006-03-26 Thread Alex Brown
Adrian, Debug is disabled (should have mentioned this) I saw this reported and was the first thing I tried. model sent in email. Regards Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: RSS Feeds - what am I doing wrong?

2006-03-26 Thread Adrian Holovaty
On 3/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > def items(self, obj): > return submissions.get_list(blog__id__exact = obj.id, > order_by=('-date_submitted',), limit=5) > - - - - - - - - - - - - - - - - - - - - - - - - > > According to the docs, the RSS framework should be

Re: Recursive(?) ManyToMany model

2006-03-26 Thread Russell Keith-Magee
On 3/27/06, wam <[EMAIL PROTECTED]> wrote: class Doc(meta.Model): title = meta.CharField(maxlength=50) contents = meta.TextField() inspired_by = meta.ManyToManyField(Doc) supercedes = meta.ManyToManyField(Doc)I've obviously been having problem with the recursive nature of the

Re: Memory leak (db connection related?) with apache/postgres and magic-removal

2006-03-26 Thread Adrian Holovaty
On 3/26/06, Alex Brown <[EMAIL PROTECTED]> wrote: > I have a test script that repeatedly POSTs to a generic_view > create_object form. > > The problem, is that apache's memory usage just goes up and up, and > never releases. Hi Alex, Make sure your DEBUG setting isn't set to True. If it's set

Re: ASCII or PDF version of docs?

2006-03-26 Thread Adrian Holovaty
On 3/24/06, Glenn Tenney <[EMAIL PROTECTED]> wrote: > On Fri, Mar 24, 2006 at 07:45:18PM -0600, James Bennett wrote: > > Every time you download Django, you get a complete copy of the latest > > version of the documentation, in ASCII format. > > As I've noted on one of the doc pages on the web,

Re: Recursive(?) ManyToMany model

2006-03-26 Thread Malcolm Tredinnick
Hi William, On Sun, 2006-03-26 at 20:16 -0800, wam wrote: > I have a model where I will have a pool of documents that will have > several references to various other documents within the pool. For > example, I'm trying to do something similar to the following: > > class Doc(meta.Model): >

Re: Memory leak (db connection related?) with apache/postgres and magic-removal

2006-03-26 Thread Ivan Sagalaev
Alex Brown wrote: >I have a test script that repeatedly POSTs to a generic_view >create_object form. > >The problem, is that apache's memory usage just goes up and up, and >never releases. > > It's a feature :-) With DEBUG = True Django logs all executed SQL statements in db.queries. This is

Recursive(?) ManyToMany model

2006-03-26 Thread wam
I have a model where I will have a pool of documents that will have several references to various other documents within the pool. For example, I'm trying to do something similar to the following: class Doc(meta.Model): title = meta.CharField(maxlength=50) contents = meta.TextField()

Memory leak (db connection related?) with apache/postgres and magic-removal

2006-03-26 Thread Alex Brown
Hi, I am running django on Windows/apache/mod_python/postgres. I am using the latest magic-removal branch with the following patches: (1) http://code.djangoproject.com/attachment/ticket/1539/magic.querydict.patch - Solves a multithreading issue with the QueryDict class (2)

Re: customised generic view

2006-03-26 Thread lawgon
> > Hello, > > what I am trying to do since this morning is to allow my logged in user > to create Members. As you will see below Member is related to the User > class by a foreignkey. convention is to use OneToOneField kg --~--~-~--~~~---~--~~ You received

Re: Assigning default value for field in admin

2006-03-26 Thread tonemcd
This looks like it might help, http://lukeplant.me.uk/blog.php?id=1107301634 although it's not exactly what you're after... Cheers, Tone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Showing admin-style forms on regular user forms?

2006-03-26 Thread tonemcd
Check this out - http://groups.google.com/group/django-users/browse_frm/thread/3328829f1ed7f788/a980f983c5fc1bad It's very rushed, as I was on the way to the airport and just wanted to get the post made before I forgot it, but it does work... Cheers, Tone

Re: customised generic view

2006-03-26 Thread limodou
On 3/27/06, yml <[EMAIL PROTECTED]> wrote: > > Hello, > > what I am trying to do since this morning is to allow my logged in user > to create Members. As you will see below Member is related to the User > class by a foreignkey. > so far I create User, Member using generic view. What I would like

Re: Showing admin-style forms on regular user forms?

2006-03-26 Thread James Bennett
On 3/26/06, shredwheat <[EMAIL PROTECTED]> wrote: > I'm just getting started with Django. Went through the tutorials for > getting a simple form and validation on the user site. I have a time > and date field shown, but they are plain text entry form widgets. I was > hoping they would be all

Showing admin-style forms on regular user forms?

2006-03-26 Thread shredwheat
I'm just getting started with Django. Went through the tutorials for getting a simple form and validation on the user site. I have a time and date field shown, but they are plain text entry form widgets. I was hoping they would be all decorated out like the time and date fields on the admin

Mixing with Mailman?

2006-03-26 Thread shredwheat
I'm planning the development of a site that will have several integreated mailing lists. I think Django and Mailman could be a good mix for this. After some intitial browsing it doesn't look hard to import the Mailman package and start querying/setting from Python. Has anyone travelled this road

Re: Extreme file uploading

2006-03-26 Thread Istvan
Great patch Ivan, This issue is of great importance as it is one of those oversights that separates a "cool toy" from a reliable "work horse". Istvan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: limit_choices_to

2006-03-26 Thread tonemcd
I think that this http://lukeplant.me.uk/blog.php?id=1107301634 might be helpful. There's also been some traffic on limit_choices_to in the group recently (although not strictly relevent to your problem I think) Cheers, Tone --~--~-~--~~~---~--~~ You received

limit_choices_to

2006-03-26 Thread yml
Hello, Is there someone kind enought to provide me some guidance on the usage of "limit_choices_to" in a foreign key? my model look like this: class Profile(meta.Model): user =meta.ForeignKey(User) pseudo = meta.CharField(maxlength=30,core=True) [...] def __repr__(self):

Re: Get current user ID in _pre_save() function

2006-03-26 Thread Gacha
I solved this problem by this patch: http://code.djangoproject.com/attachment/ticket/1132/current_user_field_patch.2.diff Now I use: author = meta.CurrentUserField(update_on_edit=False) -- But the problem about User management is not solved :(