Added required trailing slash to the end of MEDIA_URL.
Updated to use Django class-based generic views instead of the old function-based generic views.