def post_image(request):
    
    image_upload = ImageUpload.objects.create(
        user = request.user,
        attachment = request.FILES['media']
    )
    
    return HttpResponse('<mediaurl>image_upload:%s</mediaurl>' % image_upload.pk)
Called when the system object is first created.
dataset/ETHPy150Open simonw/bugle_project/bugle_project/bugle/views.py/post_image--crossover with--dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/calvinsys/media/camerahandler.py/register