setup_environ is no longer available in django 1.6

Script forgotten in 25faafaf777

Ticket: #3824