1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- coding: utf-8 -*-
from pytils.numeral import get_plural
from pytils.translit import translify
from urlparse import urlsplit
import re
import StringIO
import md5
import time
import datetime
try:
import Image as PILImage
except ImportError:
from PIL import Image as PILImage
import os
from django.shortcuts import get_object_or_404
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.conf import settings
from place.models import Place, PlacePicture
from common.http import HttpResponseDenied, HttpResponseJson
from common.decorators import render_to, paged, managers_only, ajax
from compaign.models import Compaign
from common.forms import build_form
from task.forms import UploadTasksForm, PlacementStateForm, PlacementSupplierForm
from task.models import Task, TaskPlace, Done, DeadLine
from manager.forms import FilterForm, UploadForm, PictureUploadForm, ReportStateForm, ReportSupplierForm
import flash
from excel import generator
from supplier.models import Supplier
from manager.parser import SupParser
from manager.ppp import compaign_excel_ppp
from log.models import Log
from image.models import Image