Пример #1
0
def upload(request):
    u = Uploads()
    if request.method == 'GET':
        return u.view_content(request)
    elif request.method == 'POST':
        return u.upload_content(request)
Пример #2
0
def content(request):
    upload = Uploads()
    if request.method == 'GET':
        return upload.view_upload(request)
Пример #3
0
def media(request):
    u = Uploads()
    if request.method == 'GET':
        return u.media_chooser(request)