django response to POST with 500 -


i'm trying make s server interact web server using django. other server , post server. working now, other server post server, django return 500.

here code piece:

views.py:

 import wx  import logging   def u_wx(request):    iwx = wx.wx()    logger = logging.getlogger(__name__)    logging.error('in wx process')    if request.method == 'get':       logging.error("wx validate")       return iwx.server_validate(request)    else:       logging.error("wx post")       return iwx.wx_post_process(request) 

urls.py:

  urlpatterns = django.conf.urls.patterns('',   django.conf.urls.url(r'^wx/$',        views.u_wx), 

)

wx.py:

class wx: def wx_post_process(self, request):     return django.http.httpresponse('hello') 

when server, u_wx called , 'if' block run. when post it, u_wx no called @ all. django gives following message:

[21/mar/2015 18:50:57] "post /wx?signature=xxxx&timestamp=xxxx&nonce=xxxx http/1.0" 500 57460 

so, what's problem? thanks


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -