Will Smith was considered as a possible director of Django Unchained .
The film was directed by Will Smith and its casting began in 2011 featuring Foxx taking the role of the title character .
Django Unchained