示例#1
0
def namepage(first):
    last = generate_name('last', 4)
    return render_to_response('names/main.html', {
        'first': first,
        'last': last,
        'url': first + "%20" + last
    })
示例#2
0
def female(request):
    first = generate_name('female')
    return namepage(first)
示例#3
0
def female(request):
    first = generate_name('female')
    return namepage(first)
示例#4
0
def namepage(first):
    last = generate_name('last', 4)
    return render_to_response('names/main.html', {'first': first,
                                                  'last': last,
                                                  'url': first + "%20" + last})