proxy correction
authorymh <ymh.work@gmail.com>
Fri, 16 Nov 2012 09:25:07 +0100
changeset 60 4a0bfe0002b1
parent 59 d58d795a3258
child 61 ef14949a553d
proxy correction
src/hp/config.py.tmpl
src/hp/views.py
--- 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/"
 
--- 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')