Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/j/django-frog-1.0.1/frog/uploader.py   django-frog(Download)
 
from models import Piece, Image, Video, Gallery, ROOT, FROG_PATH
from common import JsonResponse, Result, getHashForFile
 
from path import path as Path
def upload(request):
    res = Result()
    if request.FILES.has_key('file'):
        try:
            f = request.FILES['file']