# HG changeset patch # User ymh # Date 1353054307 -3600 # Node ID 4a0bfe0002b16a9441364dc7c4d91098fd1945f9 # Parent d58d795a325848309c4121da58c3d63cdae57ea4 proxy correction diff -r d58d795a3258 -r 4a0bfe0002b1 src/hp/config.py.tmpl --- a/src/hp/config.py.tmpl Fri Nov 16 02:04:40 2012 +0100 +++ b/src/hp/config.py.tmpl Fri Nov 16 09:25:07 2012 +0100 @@ -48,7 +48,7 @@ # URL prefix for static files. # Example: "http://media.lawrence.com/static/" -STATIC_URL = BASE_STATIC_URL + "site" +STATIC_URL = BASE_STATIC_URL + "site/" # A sample logging configuration. The only tangible logging # performed by this configuration is to send an email to @@ -107,7 +107,7 @@ LDT_NETLOC = "%(ldt_netloc)s" LDT_DOMAIN = 'http://'+LDT_NETLOC LDT_BASE_URL = LDT_DOMAIN + '%(ldt_baseurl)s' -LDT_URL = LDT_BASE_URL + "'%(ldt_url)s'" +LDT_URL = LDT_BASE_URL + '%(ldt_url)s' LDT_API_URL = LDT_URL + 'api/ldt/1.0/' LDT_STATIC_URL = LDT_BASE_URL + "static/site/" diff -r d58d795a3258 -r 4a0bfe0002b1 src/hp/views.py --- a/src/hp/views.py Fri Nov 16 02:04:40 2012 +0100 +++ b/src/hp/views.py Fri Nov 16 09:25:07 2012 +0100 @@ -82,8 +82,9 @@ r = requests.request(request.method, settings.KC_URL + path, data=request.POST, params=request.GET) logger.debug("Proxy r url : " + r.url) - logger.debug("Proxy r method : " + r.method) - logger.debug("Proxy r status : " + r.status) + logger.debug("Proxy r method : " + r.request.method) + logger.debug("Proxy r full url : " + r.request.full_url) + logger.debug("Proxy r status : " + r.status_code) logger.debug("Proxy r text : " + r.text) return HttpResponse(content=r.text, content_type='application/json;charset=UTF-8')