def upload(request): u = Uploads() if request.method == 'GET': return u.view_content(request) elif request.method == 'POST': return u.upload_content(request)
def content(request): upload = Uploads() if request.method == 'GET': return upload.view_upload(request)
def media(request): u = Uploads() if request.method == 'GET': return u.media_chooser(request)