Pass Extra Params to Views

urls.py

('^foo/$', 'name_age', {'name': 'foo', 'age': 20}),
('^bar/$', 'name_age', {'name': 'bar', 'age': 18}),

views.py

def name_age(request, name, age):
    return HttpResponse('name: %s -- age: %s' %(name, age))

results matching ""

    No results matching ""