예제 #1
0
def get_message(key):
    return MESSAGES.get(key) or f'{key} is not found'
예제 #2
0
def get_message(key):
    return MESSAGES.get(key) or "%s not found!" %key
예제 #3
0
def get_message(key):
    '''View a message after providing its key via the above Url route
    if the key provided is not found display message saying so'''
    return MESSAGES.get(key) or f'{key} not found!'
예제 #4
0
파일: views.py 프로젝트: foxcodenine/books
def get_message(key):
    return MESSAGES.get(key) or "%s not found!" % key