On Wed, 2012-04-04 at 23:56 -0700, Lars Ruoff wrote: > I'd like to know where to put the code that reads these files and > initialzes the global data once and for all at server startup. > I.e. i'd like to have that data in memory and accessible from any > view > during the lifetime of the server, so that it needs NOT to be loaded > for any access to the site/view. > >
I may be wrong, but AFAIK django is not a server - it is a framework that runs on a web server, so every new request starts a new instance of your site. You could use cacheing to serve static data - but this is not like pre-loading data like one would do with zope for example. -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

