Re: How can I force a browser to cache my view?

2011-04-27 Thread Oliver Andrich
Hi Javier, 2011/4/27 Javier Guerra Giraldez > On Wed, Apr 27, 2011 at 10:48 AM, Oliver Andrich > wrote: > > So, I was looking into possible solutions. As you can't download anything > > via ajax directly, you have to trick the browser into caching it and then > >

Re: How can I force a browser to cache my view?

2011-04-27 Thread Oliver Andrich
Hi, 2011/4/27 christian.posta > You're trying to cache a pdf file/attachment? why? What's the purpose > of trying to do it that way? Why don't you just send it to the client when they ask for it? > Well, basically the reason is, that I want to show a progress dialog or "meanwhile" dialog to th

How can I force a browser to cache my view?

2011-04-27 Thread Oliver Andrich
Hi, I have a problem getting the browser to cache the data returned by my view. The basic idea behind this is, I want to download the data via ajax to provide a progress dialog and afterwards I set document.location.href to the same url and use the cached data. last_modified sets the last modified

Struggling with aggregation/annotation

2010-11-02 Thread Oliver Andrich
Hi, currently I am moving my django project towards Django 1.2. During that step I want to replace code like that query_set = query_set.extra(select = { 'image_count': '''SELECT COUNT(*) FROM image WHERE topic.id = image.topic_id

Reponse code for a require_XHR decorator?

2010-10-12 Thread Oliver Andrich
Hi, I want to add an require_XHR decorator to my project. The implementation is pretty straightforward. def require_XHR(f): @wraps(f) def wrapper(request, *args, **kwargs): if not request.is_ajax(): return HttpResponseBadRequest() return f(request, *args, **kwa

Re: Difference between sqlite3 and mysql backend on test code involving generic relationships

2008-09-25 Thread Oliver Andrich
Well, it seems to happen, when the post_syncdb signal code from django.contrib.auth is called. Somehow calling the code from ./manage.py test differes from ./manage.py flush. I think I will reproduce this in a minimal django project and try file a bug report. Best regards, Oliver -- Oliver

Re: Difference between sqlite3 and mysql backend on test code involving generic relationships

2008-09-25 Thread Oliver Andrich
so have to note, that DocumentTests includes 3 tests - the first always works while the later two always fail. But it is not depend on the test itself, but simply on the order of the tests in the test case. Bye, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://o

Difference between sqlite3 and mysql backend on test code involving generic relationships

2008-09-25 Thread Oliver Andrich
In sqlite3 this works like a charm. Can anybody drop me a helpful tip? The app itself works like expected, but I would appreciate to have working testcode. :) Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://oliverandrich.net/ --~--~-~--~~~

Question admin area and logging of changes of models

2008-07-20 Thread Oliver Andrich
Hi, I have currently the desire to use the logging support from the admin app in my own app. This step is solved. But how does the app accomplish the task to determine which fields have changed on the given instance. Is there an easy way to achieve that in my own app? Best regards, Oliver

Re: Images in MySQL

2008-07-14 Thread Oliver Andrich
Hi Luke, I have tried this in an asset management system I am currently implementing for my company, which is ment to store a lots of images (round about 300.000+). Generally it is a very bad idea, at least this is what I have found. I ignored this article http://mysqldump.azundris.com/arc

Question concerning generic views or date based views in general

2006-12-03 Thread Oliver Andrich
also create the view myself. Is there a way to select the years with entries from the database using the ORM? I can of course use SQL, but I want to stick to the ORM and I want to learn a little more about it, besides the basics I have used so far. Best regards, Oliver -- Oliver Andrich <[EM

Re: Serious Question... Web2.0

2006-09-30 Thread Oliver Andrich
ny of the existing toolkits. And I would be very sad, if someday this would change. I prefer jQuery as the Toolkit of choice, but others Mochikit and Dojo. So, for me it is a feature of Django to not have an integrated magic Web 2.0 toolkit. Best regards, Oliver -- Oliver Andrich <[EMAIL PROTE

Re: Re: Re: Python 2.5 anyone

2006-09-20 Thread Oliver Andrich
On 9/20/06, James Bennett <[EMAIL PROTECTED]> wrote: On 9/20/06, Oliver Andrich <[EMAIL PROTECTED]> wrote:> For your own development environment this is more then okay in my> eyes. And I would even deploy with this small change. But this is > personal taste. :)Probably the be

Re: Re: Python 2.5 anyone

2006-09-20 Thread Oliver Andrich
e For your own development environment this is more then okay in my eyes. And I would even deploy with this small change. But this is personal taste. :) Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ --~--~-~--~~~---~--~-

Re: Re: Python 2.5 anyone

2006-09-20 Thread Oliver Andrich
int, that it is not working. Can you elaborate a little bit on this? Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Re: Python 2.5 anyone

2006-09-20 Thread Oliver Andrich
e for MySQLdb. Afterwards the install of Django worked fine and without errors. And for pysqlite, I think you can just stick to Python 2.5. It includes the relevant library. May be a small patch to the Django sqlite backend is required, but this is something I have to check later. Hope that h

Re: Python 2.5 anyone

2006-09-19 Thread Oliver Andrich
Hi, I am running Django 0.95 . And so far I can't see any problems. Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou