I think you would need to implement caching. See
https://docs.djangoproject.com/en/dev/topics/cache/
Also, if you really want it pre-loaded you would probably need to write
a program to ensure all static data is fetched at webserver restart.
But, normally static data isn't served by Django. It is usually kept in
a separate location from your Django code and served directly by the
webserver without getting Django involved at all. See
https://docs.djangoproject.com/en/dev/howto/static-files/
Good luck
Mike
> 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.
>
> Hope the question is clear.
> Regards,
> Lars
>
Why do you want it to be global? You can create an app or just put
your data in one of your apps and import it to the other apps that
read it.
in my_dataset.py write code which (obviously more work than this):
my_stuff = (1,2,3)
from mybigdatasetapp.my_dataset import my_stuff
--
Joel Goldstick