pass settings to api template
This commit is contained in:
parent
008654ad5d
commit
223ac3c534
1 changed files with 5 additions and 2 deletions
|
@ -22,8 +22,11 @@ def api(request):
|
|||
for f in sorted(methods):
|
||||
api.append({'name': f,
|
||||
'doc': actions.doc(f).replace('\n', '<br>\n')})
|
||||
context = RequestContext(request, {'api': api,
|
||||
'sitename': settings.SITENAME})
|
||||
context = RequestContext(request, {
|
||||
'api': api,
|
||||
'settings': settings,
|
||||
'sitename': settings.SITENAME
|
||||
})
|
||||
return render_to_response('api.html', context)
|
||||
action = request.POST['action']
|
||||
version = getattr(request, 'version', None)
|
||||
|
|
Loading…
Reference in a new issue