Move setting default language from the custom_context_processor to here, in order to avoid code duplication (of django language, below), and put all of the session-setting stuff in middleware, not in custom_conext_processors.