1
def process_health_case(request):
about = request.POST['about']
details = request.POST['narrative_text']
image=request.FILES['image_scan']
connection = Connection('mongodb://sbose78:[email protected]:10068/BOSE')
if images:
db=connection['BOSE']
fs=gridfs.GridFS(db)
fs.put(image,filename="image_scan2")
else:
#nothing
return render_to_response('home/new_narrative.html',{ }, context_instance=RequestContext(request))
expected an indented block (views.py, line 41)
和線路41是最後一行。
我在哪裏錯了?
謝謝。
工作!非常感謝你Joachim! :) – sbose
無論如何,這裏的else語句完全沒有必要。如果你所做的只是「通過」,你應該忽略整個條款。 –