Re: Quick but authenticated static file content.

2007-02-12 Thread Istvan Albert
and streams back the output accordingly. The CGI script could extract the location of the file and validate the permissions from one or more encrypted parameters passed to it, or it could do a database lookup on its own. Istvan --~--~-~--~~~---~--~~ You recei

Re: Best Practices for faster template rendering

2007-02-08 Thread Istvan Albert
On Feb 7, 10:58 pm, "Derek Lee-Wo" <[EMAIL PROTECTED]> wrote: > My app does a bunch of database queries and processing and when I > timed that part, it all completes within 0.5 seconds, but the call to > render_to_response() takes 18 seconds. Needless to say, the end-user > experience isn't

Re: Why is my Django install so slow?

2007-01-15 Thread Istvan Albert
Joe wrote: However, as little as 5000 hits a day brings my site down to a crawl during peak hours! The funny thing is, I have plenty of free ram space and processor during these peak hours. Something must be wrong with the setup. Unless all of these users come in the during the same minute.

Re: What is the best way of uploading large files from Django?

2007-01-14 Thread Istvan Albert
I have not yet used Tramline with Django I am expecting to do so in case I need to rewrite a Zope application. I have had good experience using JUpload (again with Zope not Django). It might be that one needs to deploy the Tramline on a separate mod python handler not the one Django is running

Re: Wrapping up new site - Django observations

2006-12-18 Thread Istvan Albert
Jeffrey Zelt wrote: > The Django ORM is probably the only piece of Django I am embarrassed > showing other developers. Oh really? > I will not be satisfied if the current ORM is capable of fulfilling 95% > requirements You must be inexperienced if you think that an elegant solution to 95% of

Re: Upgrading from .95 to Development Version

2006-12-07 Thread Istvan Albert
Paul Childs wrote: > I'm pretty sure that the download script that I found here... > http://code.djangoproject.com/ticket/1327 > must not be doing the job properly. if you are using windows you'll need to change line 41 to: fp = open(basedir + link, 'wb+') i.

Re: Upgrading from .95 to Development Version

2006-12-07 Thread Istvan Albert
Adrian Holovaty wrote: > I have never seen anything like that. I suspect the images are > corrupted somehow, and I have no idea how that might have happened. One common cause is opening files in text mode under windows. The flags need to be 'wb' not just 'w' i.

Re: General File Upload Questions.

2006-12-01 Thread Istvan Albert
> Can anyone comment on the upload limitations of Django? alas the situation is hopeless, the fix itself is very simple, unfortunately the patch that was supposed to add this http://code.djangoproject.com/ticket/2070 has degenerated into adding a completely unrelated feature (progress

Re: Why not Django

2006-11-30 Thread Istvan Albert
Fredrik Lundh wrote: > that's probably because they're scientists, and have a pretty good > understanding of basic math I think the main reason might be that when they get it wrong they don't have to pay the difference from their own pocket. i.

Re: Completed Django Project

2006-10-26 Thread Istvan Albert
Looks nice Leon, congratulations. You might want to try to tweak the spacing to allow for a little more text per page ... and allow for the latest news to be read without having to scroll the page just an opinion, i. --~--~-~--~~~---~--~~ You received this

Re: media files with django dev-server

2006-10-25 Thread Istvan Albert
There is an option to manage.py --adminmedia=ADMIN_MEDIA_PATH that might just do what you need. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: django embedded web server

2006-10-15 Thread Istvan Albert
Russell Keith-Magee wrote: > > I'm sure it could, but I'm almost certain it wont. The only problem with this is that some kind of sites cannot be tested with the development server. If the site streams back the output and incrementally builds it then it cannot for example read in the css even

Re: Using Swish-e with django...

2006-07-31 Thread Istvan Albert
> I am expecting an answer like: "You are crazy: db native searches will always > be faster" You are crazy: swish-e searches will always be faster. Swish-e was created for indexing/searching documents. The only issue at hand is whether the speedup you get is worth the trouble of having to

Re: Problem with get_or_create

2006-06-18 Thread Istvan
In your listing line 24 is not aligned properly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this

Re: howto Django + lighttpd + Windows?

2006-06-13 Thread Istvan
> Other reason? Because this option exist! It does not. Lighttpd fastcgi does not work on windows. i. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Google SOC: Call for Mentors

2006-04-18 Thread Istvan
Congrats! And while I'm at it I'll say this: Django is the real deal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To

Re: magic-removal - count with a condition

2006-04-04 Thread Istvan
great, thanks for the tip --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

magic-removal - count with a condition

2006-04-04 Thread Istvan
In Django 0.91 the foos.get_count( complex=condition ) was a valid construct. The magic removal branch raises an exception: "count() takes exactly 1 argument (2 given)" when doing a : foo.objects.count( condition ) Is that intended? What would be a workaround? i.

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 G

Re: are uploaded files kept in memory?

2006-03-11 Thread Istvan
Opened a ticket on it and it looks like it is being patched to the behavior that I mentioned above. Very nice! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: are uploaded files kept in memory?

2006-03-07 Thread Istvan
> I think the question Istvan was asking was whether files are stored in > memory until they are written out as a single entity to the destination > file. And I believe this is correct: Django does not stream the incoming > content to the file as it receives it, Yes, that is what

are uploaded files kept in memory?

2006-03-06 Thread Istvan
I'm evaluating Django for an application in wich we need to process uploaded files of various sizes (potentially quite large). >From the docs it looks like uploaded files will kept in memory instead of being streamed into (temporary) files. Is that the case?