'Retrieve the "blocked" message from the database.
Arguments:
course_key (CourseKey): The location of the course.
access_point (str): How the user was trying to access the course.
Can be either "enrollment" or "courseware".
Returns:
unicode: The URL path to a page explaining why the user was blocked.'

@classmethod
def _get_message_url_path_from_db(cls, course_key, access_point):

    default_path = reverse('embargo:blocked_message', kwargs={'access_point': 'courseware', 'message_key': 'default'})
    if (not cls.is_restricted_course(course_key)):
        return default_path
    try:
        course = cls.objects.get(course_key=course_key)
        msg_key = course.message_key_for_access_point(access_point)
        return reverse('embargo:blocked_message', kwargs={'access_point': access_point, 'message_key': msg_key})
    except cls.DoesNotExist:
        return default_path
