Comment Comment by tummybug I'm not sure about django but flasks Application object has a before_first_request method which takes a function designed to do this type of initialization operations. parent tummybug 7 years ago