On Thu, Sep 11, 2008 at 2:19 AM, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > Chris schrieb: >> I have an application that uses some large packages, such as Wordnet, >> and the imports can take awhile. Is there a mechanism in Django to >> persist imported package across requests? I'm running Django via >> mod_wsgi, and it seems to re-import everything in my view files for >> *every* request, which makes the application unusably slow. >> > Please post your wsgi configuration. Do you have something like > maximum-requests=1?
Nope, I have the basic config straight from http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango Alias /myapp/static /usr/local/django/myapp/static/ <Directory /usr/local/django/myapp/static/> Order deny,allow Allow from all </Directory> WSGIScriptAlias /myapp /usr/local/django/myapp/apache/django.wsgi <Directory /usr/local/django/myapp/apache> Order deny,allow Allow from all </Directory> --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---