Added stuff to wsgi to keep production happy