diff --git a/app/views.py b/app/views.py index a7c5c7c..c6ba780 100644 --- a/app/views.py +++ b/app/views.py @@ -1,16 +1,23 @@ +import csv +import json import os +import time from django.contrib import messages -from django.conf import settings +from werkzeug.utils import secure_filename from django.views.generic.base import TemplateView -from django.http import FileResponse , HttpResponsePermanentRedirect +from django.core.files.storage import default_storage +from django.core.files.base import ContentFile +from django.views.decorators.csrf import csrf_protect +from django.http import FileResponse, HttpResponsePermanentRedirect, HttpResponse from django.urls import reverse import os.path as ospath +from shutil import move from os import makedirs from tempfile import gettempdir from .formats import * -from .convert import reindex_data +from .convert import reindex_data, refresh_data # Get temporary file storage UPLOAD_PATH = gettempdir()