def process_request(self, request): from django.conf import settings if settings.RUNTIME_DB_UPDATE: init_database_config(request)
def update_db_callback(sender, **kwargs): init_database_config()