On Apr 5, 9:05 am, kenneth gonsalves <law...@thenilgiris.com> wrote:
> 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


Hi,
the question is not about serving static data (like HTML, images
etc.), but having global python variables initialized once, for all
instances of the site, that is, so they can be used from within each
view.
All pages should be able to access these global objects and they
should be loaded only once in memory.
The problem is indeed with the "start a new instance of the site".
Isn't there a way to pass constant data between instances?
It probably would require a callback that django calls when it is
invoked for the first time.
does this exist?


-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to