def post_image(request):
    """Let iPhone Twitter client users attach images"""
    
    image_upload = ImageUpload.objects.create(
        user = request.user,
        attachment = request.FILES['media']
    )
    
    return HttpResponse('<mediaurl>image_upload:%s</mediaurl>' % image_upload.pk)
dataset/ETHPy150Open simonw/bugle_project/bugle_project/bugle/views.py/post_image/original