Django : Call a method only once when the django starts up
there are some cheats for this. The general solution is trying to include the initial code in some special places, so that when the server starts up, it will run those files and also run the code. 
Have you ever tried to put print 'haha' in the settings.py files :) ?
Note: be aware that settings.py runs twice during start-up
I want to initialize some variables (from the database) when Django starts. 
I am able to get the data from the database but the problem is how should I call the initialize method . And this should be only called once.
Tried looking in other Pages, but couldn't find an answer to it.
The code currently looks something like this ::

def get_latest_dbx(request, ....):
#get the data from database

def get_latest_x(request):
get_latest_dbx(request,x,...)

def startup(request):
get_latest_x(request)