Magic Town is a 1947 comedy film directed by William A. Wellman and starring James Stewart and Jane Wyman. The picture is one of the first films about the then-new practice of public opinion polling. The film was inspired by the Middletown studies. It is also known as The Magic City. The "magic" of the title is the mathematical miracle (as it is called in the film) that certain towns can be used to fairly accurately predict the actions of the whole country.