forked from 0x2620/pandora
RequestContext->dict
This commit is contained in:
parent
cb0d1ec37f
commit
fdd5101bc7
1 changed files with 1 additions and 2 deletions
|
@ -4,7 +4,6 @@ from __future__ import division, absolute_import
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from django.shortcuts import render_to_response
|
from django.shortcuts import render_to_response
|
||||||
from django.template import RequestContext
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
from ..shortcuts import render_to_json_response, json_response, HttpErrorJson
|
from ..shortcuts import render_to_json_response, json_response, HttpErrorJson
|
||||||
|
@ -27,7 +26,7 @@ def api(request):
|
||||||
for f in sorted(methods):
|
for f in sorted(methods):
|
||||||
api.append({'name': f,
|
api.append({'name': f,
|
||||||
'doc': actions.doc(f).replace('\n', '<br>\n')})
|
'doc': actions.doc(f).replace('\n', '<br>\n')})
|
||||||
context = RequestContext(request, {
|
context = {
|
||||||
'api': api,
|
'api': api,
|
||||||
'settings': settings,
|
'settings': settings,
|
||||||
'sitename': settings.SITENAME
|
'sitename': settings.SITENAME
|
||||||
|
|
Loading…
Reference in a new issue