#Django imports
from django.shortcuts import render, render_to_response
from django.core.context_processors import csrf
from django.views.decorators.csrf import csrf_protect
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models import User, AnonymousUser
from django.db import IntegrityError
from django.http import HttpResponse
from django.conf import settings
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django import forms


#Projects imports
from debug import *
from permissions import *
from itsapp.models import *
import ITSconf
from itsapp.utils import *

#python imports
import os
import simplejson
import base64
import shutil





### WIEWS FUNCTION ###


'''def getHistoryLastEvents(request):
	
	#generating json response array
        result = []
	result.append({"name":file.name, 
                       "size":file.size, 
                       "url":"no_url", 
                       "thumbnail_url":thumb_url,
                       "delete_url":file_delete_url, 
                       "delete_type":"POST",})

        response_data = simplejson.dumps(result)
        
        #checking for json data type
        #big thanks to Guy Shapiro
        if "application/json" in request.META['HTTP_ACCEPT_ENCODING']:
            mimetype = 'application/json'
        else:
            mimetype = 'text/plain'
	print('--------------------------------')
        return HttpResponse(response_data, mimetype=mimetype)	
	
'''



