mysql - A server error occurred. Please contact the administrator in Django while executing a stored procedure -


hi find code executed below facing error "a server error occurred. please contact administrator in django while executing stored procedure".

def movementsout_form(request):     feature_list = request.session['feature_list']     featuresgroups = request.session['featuresgroups']     if request.method == 'post':        form = materialissues_newform(request.post)        print "name ", request.post['name_of_material'],request.post['inventory']        if form.is_valid():            cursor = connection.cursor()            cursor.callproc('smartlogis2.moveout1',      (str(request.post['name_of_material']),str(request.post['date_of_issue']),str(request.post['time_of_issue']),int(request.post['gate']), int(request.post['vechile_id']),int(request.post['way_bill_no']),str(request.post['date_of_shipping']),int(request.post['riv_no']),int(request.post['dbr_no']),str(request.post['description']),int(request.post['inventory']),int(request.post['movement_in']),int(request.post['transport']),int(request.post['billing_address']),str(request.post['status'])));        cursor.commit()        print "cursor value",        print "procedure called"        return render_to_response('smartlogis/common.html', {"contacts":feature_list, 'len':len(feature_list) - 1, "featuresgroups":featuresgroups})    else:        return httpresponse('data wrongly entered') 

in settings.py #'django.middleware.csrf.csrfviewmiddleware', also commented


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -