New config caused some kind of infinite loop; attempting to move the secret_key_base function into the template file directly