Updated according to Django's deprecation guidelines and feedback

Thanks to Tim Graham for the extensive feedback!