This commit is contained in:
j 2012-02-21 03:04:50 +05:30
parent 51f6b0645f
commit 52afe24428

View file

@ -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: