python - 500 internel server error -


i trying fetch data facebook api. here code sending message django application

what doing combine status asd@@@@@qe@@@@@@ form , try split form in django part.

however, have post http://chaop.webfactional.com/get-message/ 500 (internal server error) problem

 var getposts = function (response) {      if(response.data != null)   {  (var i=0; i<response.data.length; i++)   {     console.log(response.data[i].message)     if(response.data[i].message != null)     {       message = message + response.data[i].message;       message = message + '%%%%%'       console.log(message)     }  }   if(response.paging != null){    nextpage = response.paging.next;    console.log(nextpage);    $.get(nextpage, getposts, "json")   }   else $.post('/get-message/',{message: message,csrfmiddlewaretoken:'{{csrf_token}}'});   } }  fb.api('/me/feed', function(response) { if (response.data.length >0){ (var i=0; i<response.data.length; i++)   {     console.log(response.data[i].message)     if(response.data[i].message != null)     {       message = message + response.data[i].message;       message = message + '%%%%%'       console.log(message)     }   } console.log(message) if(response.paging != null){ nextpage = response.paging.next; console.log(nextpage); $.get(nextpage, getposts, "json")  } else $.post('/get-message/',{message: message, csrfmiddlewaretoken:'{{csrf_token}}' });  } 

my views.py

def get_message(request):                                                                                                                       return render(request, 'suv/index.html') 

my urls.py

urlpatterns = patterns('',     url(r'^$', 'suv.views.home'),     url(r'^get-message', 'suv.views.get_message'), 

)

btw: there way can add array django , how django deal it?

thank much

this error when go there. same?

importerror @ /get-message/ no module named home request method: request url:    http://chaop.webfactional.com/get-message/ django version: 1.5.1 exception type: importerror exception value:     no module named home exception location: /home/chaop/webapps/my_app2/lib/python2.7/django/utils/importlib.py in import_module, line 35 python executable:  /usr/local/bin/python python version: 2.7.5 python path:     ['/home/chaop/webapps/my_app2', '/home/chaop/webapps/my_app2/myproject', '/home/chaop/webapps/my_app2/lib/python2.7', '/home/chaop/lib/python2.7', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/site-packages/pil']  server time:   mon, 24 mar 2014 02:45:39 -0500 

if check out importlib.py line 35.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -