On Apr 5, 2:31 pm, kenneth gonsalves <law...@thenilgiris.com> wrote: > On Thu, 2012-04-05 at 05:25 -0700, Lars Ruoff wrote: > > 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. > > this is precisely the point I addressed in my reply. Every request to > django starts a new instance of django - and you have to initialise the > variables again - cacheing may improve the performance. Django is not a > server. > -- > regards > Kenneth Gonsalves
Kenneth, ok, sorry, i misunderstood your remark. So as i understand, "new instance of Django" implies "new instance of Python interpreter", right? Then effectively there is no way of saving objects between instances. : ( So how would you guys implement a (constant, possibly large) string table that would be used in nearly every view? regards, Lars -- 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.