Description and other fields in RSS. (CDATA)

2009-01-13 Thread Vladimir Prudnikov
My siggestion is about feed framework. When you add description to the feed item like feed.add_item( title=pic.name, link=link, description=description ) the html content inside description tag will be htmlencoded (< and > will be repl

Re: Description and other fields in RSS. (CDATA)

2009-01-13 Thread Vladimir Prudnikov
On 14 Jan 2009, at 04:55, Malcolm Tredinnick wrote: > > On Wed, 2009-01-14 at 04:39 +0100, Vladimir Prudnikov wrote: >> My siggestion is about feed framework. When you add description to >> the >> feed item like >> >> feed.add_item( >>

Django Sites framework

2009-08-20 Thread Vladimir Prudnikov
I'm *not* using Sites framework ('django.contrib.admin' is not included in INSTALLED_APPS and SITE_ID is not defined), but there is an exception when I click on "View on website" link on the edit model page in admin interface. Exception Value: You're using the Django "sites framewor

Re: Django Sites framework

2009-08-21 Thread Vladimir Prudnikov
Yep, django.contrib.sites is not included in the INSTALLED_APPS list. On 21 Aug 2009, at 10:40, David Christiansen wrote: > > Have you checked your INSTALLED_APPS for the sites app as well? > > On Aug 20, 10:59 am, Vladimir Prudnikov wrote: >> I'm *not

update_{FIELD_NAME} method to update only one field in a model.

2009-09-16 Thread Vladimir Prudnikov
Hello,The default behaviour for saving object is very hard for big models, especially if it contain TextField. For example if I change one small field in a model and that run save() method it will generate UPDATE query for all of the fields which is very slow. Instead of that I do it like that: p