replaced django's stuff