add docs
This commit is contained in:
parent
51f6b0645f
commit
52afe24428
1 changed files with 6 additions and 0 deletions
|
@ -39,6 +39,12 @@ class SessionCookieJar(cookielib.LWPCookieJar):
|
|||
self._really_load(f, 'memory', ignore_discard, ignore_expires)
|
||||
|
||||
def api_proxy(request):
|
||||
'''
|
||||
settings.OXAPI_URL =...
|
||||
from ox.django.views import api_proxy
|
||||
urlpatterns = patterns('',
|
||||
url(r'^api/$', api_proxy)
|
||||
'''
|
||||
url = settings.OXAPI_URL
|
||||
cj = SessionCookieJar()
|
||||
if 'cj' in request.session:
|
||||
|
|
Loading…
Reference in a new issue