Support Django 1.5.

- Fix adminmedia, admin_media_prefix.
- Remove simple, redirect_to and defaults modules which are deprecated in
  Django 1.5. And replace 'redirect_to' with RedirectView.
- Remove one trailing whitespace.
pylint