Run django only after all vars are defined