fixed djangoapp example when using multiprocessing