Re: Kate syntax highlighting for django html templates.

2006-09-23 Thread Matthew Marshall
I'd be glad to maintain it for kate! I just uploaded a new version. It highlights mismatched block/for/if/etc tags as errors. (Something I tend to do a lot.) I also changed the priority to 9, so that it doesn't compete for the html extention. (Sorry it took me so long to reply... I've been pr

Kate syntax highlighting for django html templates.

2006-08-26 Thread Matthew Marshall
I got sick of kate highlighting my django template vars/tags as errors, so I put this together. It highlights tags, vars, filters, and comments. You can also use Ctrl+[Shift+]D to [un]comment using {% comment %}{% endcomment %}. It's really pretty simple, but I thought it was worth sharing. Ge

Re: Konqueor 3.5 beta bug with admin screens

2005-09-23 Thread Matthew Marshall
On Saturday 24 September 2005 12:25 am, [EMAIL PROTECTED] wrote: > A warning for other Konqueror users: > > In the just-released KDE 3.5 beta (KDE 3.4.91), the Django admin > screens that have datetime fields and calendars cause KHTML to freeze. > This didn't happen in 3.4.0, and I'm hoping it wil

Re: Money or Currency data type

2005-09-16 Thread Matthew Marshall
On Saturday 17 September 2005 01:00 am, Eric Walstad wrote: > Hi, > > I didn't find any reference to money or currency data types in the > django source, nor in the list archives. My app needs to store US > Dollars. > > What are you all using to store currency data? > > Any tips on how best to wr

Re: problem with ImageField

2005-09-14 Thread Matthew Marshall
On Wednesday 14 September 2005 08:25 am, lawgon wrote: > File > "/usr/local/lib/python2.4/site-packages/django/core/meta/fields.py", > line 320, in get_db_prep_save > value = value.strftime('%Y-%m-%d') > > AttributeError: 'str' object has no attribute 'strftime' > > i realise that this has so

Re: New document: How to write custom template libraries

2005-09-06 Thread Matthew Marshall
Whoa! That's quite a hefty piece of documentation. Thanks! MWM On Tuesday 06 September 2005 03:16 am, Adrian Holovaty wrote: > I just added this new document: > > The Django template language: For Python programmers > http://www.djangoproject.com/documentation/templates_python/ > > Comments,

Re: Help on M2MField

2005-09-01 Thread Matthew Marshall
On Thursday 01 September 2005 06:13 am, Leo wrote: > class People(Model): > first_name = ManyToManyField (Name) > last_name = ManyToManyField (Name) I might be misunderstanding the situation, but why are you using ManyToManyField instead of ForeignKey? (Sorry I don't know the answer to

Re: M2M crossing apps?

2005-08-31 Thread Matthew Marshall
On Thursday 01 September 2005 02:11 am, Adrian Holovaty wrote: > I added that to the model docs a couple of days ago: > http://www.djangoproject.com/documentation/model_api/#models-across-files > > If it's not sufficient, I can definitely improve it. How does it look? Oh, I hadn't seen that. (I

Re: M2M crossing apps?

2005-08-31 Thread Matthew Marshall
On Thursday 01 September 2005 12:50 am, Adrian Holovaty wrote: > Hmmm...Could you make a test case for this? We use many-to-many > relationships to core.Site all the time and don't have problems. How disgusting! While working on a test case, (and tweaking the test framework to accomodate a seco

M2M crossing apps?

2005-08-31 Thread Matthew Marshall
Is anyone using M2M fields that cross apps? I am trying to do so, but am getting strange results. I have two models: categories.Category and items.Item. Item has a M2M link to Category. Everything seems to work fine, except that the 'get_related_list' methods seem to be messed up. From loo

Re: Concurrent applications

2005-08-18 Thread Matthew Marshall
On Wednesday 17 August 2005 12:49 pm, Andy Shaw wrote: > Is there any easy way to have two or more applications run > simultaneously? Having created one fully-working application, which > provides content for part of my site, I now want to construct another > which will provide site-global menus a

Re: Limiting database connections?

2005-08-12 Thread Matthew Marshall
On Friday 12 August 2005 08:14 pm, Jacob Kaplan-Moss wrote: > I just today ran across sqlrelay (http://sqlrelay.sourceforge.net/) > which looks *extremely* promising for this type of use. Does anyone > have any experience with it, and is there any interest in me writing > a sqlrelay backend? > >