Re: A cache-busting sledge-hammer

2010-11-09 Thread Ole Laursen
On Nov 9, 1:13 pm, Łukasz Rekucki wrote: > I would recommend using one of asset managers that provide JS/CSS > versioning instead. Their aren't very hard to install. You can compare > some of the more popular at > djangopackages.com:http://djangopackages.com/grids/g/asset-managers/ Seems like th

A cache-busting sledge-hammer

2010-11-09 Thread Ole Laursen
Hi! If you have the problem of visitors getting errors from using the old Javascripts and CSS when you roll out a release, I have a sledge- hammer solution that only requires a single-line change in your settings.py. It's a middleware that examines the HTML from your views and appends a little ti

Re: Customize what's a NULL for legacy data

2010-05-05 Thread Ole Laursen
On May 4, 8:08 pm, Ole Laursen wrote: > The problem is that if I try to access foo.bar in any way, Django > tries to lookup a bar with id 0 or -1 and throws an exception. My > forms break, and the serializers break, making it hard to write test > code. Does anyone know of an eas

Customize what's a NULL for legacy data

2010-05-04 Thread Ole Laursen
Hi! I have a problem. I'm dealing with a legacy database where some of the foreign keys aren't pointing to the right place because 0 (and -1) has been used in some places instead of NULL. I can't fix the rows as the new application will have to live side by side with the legacy system for some tim

Re: IOError: request data read error on POST, anyone solved this?

2009-10-02 Thread Ole Laursen
On 9 Sep., 12:18, Graham Dumpleton wrote: > It is because from the server perspective the client connection was > dropped before the request body had been able to be completely read. > So, shouldn't be anything wrong with the application or the server. > Can be caused by user aborting an upload e

Re: very odd MySQL 'ascii' code error in MySQLdb/connections.py

2008-06-06 Thread Ole Laursen
I think it's this bug: http://code.djangoproject.com/ticket/6052 Nasty fellow. -- Ole Laursen http://people.iola.dk/olau/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: django-rendertext released

2007-09-12 Thread Ole Laursen
On 11 Sep., 13:55, AndyB <[EMAIL PROTECTED]> wrote: > Incidentally have you considered using a variant of the alt text as > the image filename rather than your GUID type filename? There may be > slight accessibility/SEO advantages to this. My primary concern is that the text might contain somethi

Re: django-rendertext released

2007-09-11 Thread Ole Laursen
h rendertext. AFAIK you can only achieve this with either Flash or images. And if you're going for images, it's much, much easier with an app to generate the text dynamically than having to generate them with Photoshop or the GIMP everytime there's a new heading or a change to a

django-rendertext released

2007-09-11 Thread Ole Laursen
Hi! We've just released django-rendertext 0.1, a Django app for using custom fonts on a web page for headings and the like. It works by dynamically creating images out of text snippets with a template tag, e.g. {{ "Hello world!"|rendertext:"gentium"}}. The images are cached in the file system and

Re: django-rendertext released

2007-09-11 Thread Ole Laursen
On 11 Sep., 09:56, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > what is the difference with django-tipografy ? I admit I did not look at > the links you give yet, but at a first view, it seems there is an > overlap between the two apps... There might be? I've never heard of that project and c

Re: Populating a form

2007-09-11 Thread Ole Laursen
On 11 Sep., 08:15, AniNair <[EMAIL PROTECTED]> wrote: >I am trying to learn python and django. Can someone please tell me > how to populate some fields in a form? I want to have certain values > present in CharField or Textfield . (Eg:For editing a profile: the > data previously entered need